diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-07-10 23:16:38 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-07-10 23:16:38 +0000 |
commit | adcffce38c42372f91af404340c14420870648b6 (patch) | |
tree | cf9b19c5d3d13ea133354bdee425e3fc83bbd3f6 /gcc | |
parent | d331d37480f4c600f9f46ab9870bcc81af9ca3ab (diff) | |
download | gcc-adcffce38c42372f91af404340c14420870648b6.zip gcc-adcffce38c42372f91af404340c14420870648b6.tar.gz gcc-adcffce38c42372f91af404340c14420870648b6.tar.bz2 |
re PR c++/57827 (compiler segmentation fault)
2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/57827
* g++.dg/cpp0x/constexpr-ice7.C: New.
From-SVN: r200892
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/constexpr-ice7.C | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3d6b680..d14d49c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/57827 + * g++.dg/cpp0x/constexpr-ice7.C: New. + 2013-07-10 Janis Johnson <janisjo@codesourcery.com> * gcc.target/powerpc/20020118-1.c: Force 128-bit stack alignment diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-ice7.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-ice7.C new file mode 100644 index 0000000..4fa3a83 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-ice7.C @@ -0,0 +1,15 @@ +// PR c++/57827 +// { dg-do compile { target c++11 } } + +struct C +{ + constexpr int fun (int x) + { + return x + 1; + } + + int a = 2; + int b = fun(a); +}; + +C c; |