re PR c++/60771 (static in-class constexpr const reference initialization)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 18 Nov 2014 11:25:47 +0000 (11:25 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 18 Nov 2014 11:25:47 +0000 (11:25 +0000)
2014-11-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60771
* g++.dg/cpp0x/constexpr-ref6.C: New.

From-SVN: r217708

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-ref6.C [new file with mode: 0644]

index 80f5519aeb69dd26348340eca7f2e7b5f6c45287..f677becd88b09687f24b337e5b5b68277aff9aa0 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/60771
+       * g++.dg/cpp0x/constexpr-ref6.C: New.
+
 2014-11-18  Christophe Lyon  <christophe.lyon@linaro.org>
 
        * gcc.target/arm/neon/vbicQs16.c: Regenerate.
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-ref6.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-ref6.C
new file mode 100644 (file)
index 0000000..1cbd651
--- /dev/null
@@ -0,0 +1,6 @@
+// PR c++/60771
+// { dg-do compile { target c++11 } }
+
+struct A { 
+  static constexpr int const& ref = 5;
+};