From: Paolo Carlini Date: Tue, 18 Nov 2014 11:25:47 +0000 (+0000) Subject: re PR c++/60771 (static in-class constexpr const reference initialization) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e9394078acee8a1304ac9df80f8a509ffb4c356;p=gcc.git 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 --- 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; +};