PR c++/57827
* g++.dg/cpp0x/constexpr-ice7.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200892
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/57827
+ * g++.dg/cpp0x/constexpr-ice7.C: New.
+
2013-07-10 Janis Johnson <janisjo@codesourcery.com>
* gcc.target/powerpc/20020118-1.c: Force 128-bit stack alignment
--- /dev/null
+// PR c++/57827
+// { dg-do compile { target c++11 } }
+
+struct C
+{
+ constexpr int fun (int x)
+ {
+ return x + 1;
+ }
+
+ int a = 2;
+ int b = fun(a);
+};
+
+C c;