2013-11-03 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52071
* g++.dg/parse/pr52071.C: New.
From-SVN: r204343
2013-11-03 Paolo Carlini <paolo.carlini@oracle.com>
+ PR c++/52071
+ * g++.dg/parse/pr52071.C: New.
+
+2013-11-03 Paolo Carlini <paolo.carlini@oracle.com>
+
PR c++/38313
* g++.dg/lookup/name-clash10.C: New.
--- /dev/null
+// PR c++/52071
+
+struct C1 {
+ C1(int);
+};
+
+struct C2 {
+ C2();
+ C2(C1);
+};
+
+void f()
+{
+ int x;
+ int y = 1;
+ C2 vc;
+
+ vc = C2(C1(x = y));
+
+ vc = (C2(C1(x = y)));
+
+ vc = (C2(C1((0, x = y))));
+}