From 6e9394078acee8a1304ac9df80f8a509ffb4c356 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 18 Nov 2014 11:25:47 +0000 Subject: [PATCH] re PR c++/60771 (static in-class constexpr const reference initialization) 2014-11-18 Paolo Carlini PR c++/60771 * g++.dg/cpp0x/constexpr-ref6.C: New. From-SVN: r217708 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/constexpr-ref6.C | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/constexpr-ref6.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 80f5519aeb6..f677becd88b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-11-18 Paolo Carlini + + PR c++/60771 + * g++.dg/cpp0x/constexpr-ref6.C: New. + 2014-11-18 Christophe Lyon * 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 index 00000000000..1cbd651f1e5 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-ref6.C @@ -0,0 +1,6 @@ +// PR c++/60771 +// { dg-do compile { target c++11 } } + +struct A { + static constexpr int const& ref = 5; +}; -- 2.30.2