]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR c++/70204 (ICE in non_const_var_error)
authorPatrick Palka <ppalka@gcc.gnu.org>
Tue, 22 Mar 2016 00:30:57 +0000 (00:30 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Tue, 22 Mar 2016 00:30:57 +0000 (00:30 +0000)
commita3e2b4383173a34f8f85ee31f4d2f7422381ee14
treeaf672fb47ac92ddcd639ed7b300f915292b19432
parentb9bcad15fb662c8ca677d387cd91e7379ccd3481
Fix PR c++/70204 (ICE in non_const_var_error)

gcc/cp/ChangeLog:

PR c++/70204
* constexpr.c (non_const_var_error): Check
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.

gcc/testsuite/ChangeLog:

PR c++/70204
* g++.dg/cpp0x/constexpr-70204a.C: New test.
* g++.dg/cpp0x/constexpr-70204b.C: New test.

From-SVN: r234390
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-70204a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-70204b.C [new file with mode: 0644]