PR c++/58328
* g++.dg/cpp0x/nsdmi10.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215386
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-09-19 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58328
+ * g++.dg/cpp0x/nsdmi10.C: New.
+
2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
* gcc.dg/ssp-3.c: New.
--- /dev/null
+// PR c++/58328
+// { dg-do compile { target c++11 } }
+
+struct A1 {
+ struct B1 {
+ int y1 = 1;
+ };
+
+ A1(const B1& opts = B1()) {} // { dg-error "constructor" }
+};
+
+struct A2 {
+ struct B2 {
+ int x2, y2 = 1;
+ };
+
+ A2(const B2& opts = B2()) {} // { dg-error "constructor" }
+};