diff mbox

[C++,testcase,commiitted] PR 52071

Message ID 5276EDCF.4050701@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Nov. 4, 2013, 12:43 a.m. UTC
Hi,

my recent fix for c++/29234 fixed this one too, I'm adding the testcase 
and closing the bug.

Thanks,
Paolo.

/////////////////////
2013-11-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52071
	* g++.dg/parse/pr52071.C: New.
diff mbox

Patch

Index: g++.dg/parse/pr52071.C
===================================================================
--- g++.dg/parse/pr52071.C	(revision 0)
+++ g++.dg/parse/pr52071.C	(working copy)
@@ -0,0 +1,23 @@ 
+// 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))));
+}