2014-11-03 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/57820
* g++.dg/cpp0x/constexpr-ctor16.C: New.
* g++.dg/cpp0x/constexpr-ctor17.C: Likewise.
From-SVN: r217035
+2014-11-03 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/57820
+ * g++.dg/cpp0x/constexpr-ctor16.C: New.
+ * g++.dg/cpp0x/constexpr-ctor17.C: Likewise.
+
2014-11-03 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/60770
--- /dev/null
+// PR c++/57820
+// { dg-do compile { target c++11 } }
+
+struct C
+{
+ int a = 2;
+ int b = a + 1;
+};
+
+C c;
+constexpr C d = {};
--- /dev/null
+// PR c++/57820
+// { dg-do compile { target c++11 } }
+
+struct C
+{
+ int a = 2;
+ int b = a + 1;
+
+ constexpr C() {}
+};
+
+C c;
+constexpr C d;