PR c++/57654
* g++.dg/cpp0x/constexpr-ref7.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217756
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-11-19 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/57654
+ * g++.dg/cpp0x/constexpr-ref7.C: New.
+
2014-11-19 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/63913
--- /dev/null
+// PR c++/57654
+// { dg-do compile { target c++11 } }
+
+int i;
+
+constexpr int & iref = i;
+constexpr int & irefref = iref;
+
+class A {
+ static constexpr int & irefref = iref;
+};