From: paolo Date: Fri, 29 Aug 2014 12:47:19 +0000 (+0000) Subject: 2014-08-29 Paolo Carlini X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eff87abbb418421ed3b1bd8bd60fcc051c23646;p=thirdparty%2Fgcc.git 2014-08-29 Paolo Carlini PR c++/57764 * g++.dg/cpp0x/constexpr-57764.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214728 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b799e7921992..0cf20a760c0d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-08-29 Paolo Carlini + + PR c++/57764 + * g++.dg/cpp0x/constexpr-57764.C: New. + 2014-08-29 Paolo Carlini PR c++/59938 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-57764.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-57764.C new file mode 100644 index 000000000000..b26f4b50449b --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-57764.C @@ -0,0 +1,11 @@ +// PR c++/57764 +// { dg-do compile { target c++11 } } + +constexpr int x = 42; + +struct S +{ + static constexpr int const & y = x; +}; + +constexpr int const & S::y;