From 98712d8ba8c3f87fc59fe2d5ba8726ece4be891d Mon Sep 17 00:00:00 2001 From: paolo Date: Wed, 19 Nov 2014 09:36:40 +0000 Subject: [PATCH] 2014-11-19 Paolo Carlini 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/constexpr-ref7.C | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/constexpr-ref7.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 19b6c01b78fb..c42d725b3e87 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-11-19 Paolo Carlini + + PR c++/57654 + * g++.dg/cpp0x/constexpr-ref7.C: New. + 2014-11-19 Jakub Jelinek PR sanitizer/63913 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-ref7.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-ref7.C new file mode 100644 index 000000000000..72c8d089d774 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-ref7.C @@ -0,0 +1,11 @@ +// 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; +}; -- 2.47.3