2014-08-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54002
* g++.dg/cpp0x/constexpr-54002.C: New.
From-SVN: r214734
+2014-08-29 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/54002
+ * g++.dg/cpp0x/constexpr-54002.C: New.
+
2014-08-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/56991
--- /dev/null
+// PR c++/54002
+// { dg-do compile { target c++11 } }
+
+class C1 {
+ constexpr static int foo(int x) { return x + 1; }
+ constexpr static int bar = foo(sizeof(int)); // { dg-error "constant expression" }
+};