diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2014-11-18 11:25:47 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2014-11-18 11:25:47 +0000 |
commit | 6e9394078acee8a1304ac9df80f8a509ffb4c356 (patch) | |
tree | ac8428b2b6aca266e5f64d5bec5030e11cde7f8b /gcc | |
parent | c8196921610abdf83eadb294945fd63bddfbf87f (diff) | |
download | gcc-6e9394078acee8a1304ac9df80f8a509ffb4c356.zip gcc-6e9394078acee8a1304ac9df80f8a509ffb4c356.tar.gz gcc-6e9394078acee8a1304ac9df80f8a509ffb4c356.tar.bz2 |
re PR c++/60771 (static in-class constexpr const reference initialization)
2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60771
* g++.dg/cpp0x/constexpr-ref6.C: New.
From-SVN: r217708
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/constexpr-ref6.C | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 80f5519..f677bec 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..1cbd651 --- /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; +}; |