/cp
commitd5539c6b3f58a2d24fc85fd3a666ec75053eab70
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Jul 2016 18:43:29 +0000 (28 18:43 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Jul 2016 18:43:29 +0000 (28 18:43 +0000)
tree6847e4bd2b5fc440f6bd243f9bd23f4b7017b5be
parent05995232def85008ca7cdf385c0cd03fa556c801
/cp
2016-07-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71665
* decl.c (build_enumerator): Check the type of the enumerator before
calling cxx_constant_value.

/testsuite
2016-07-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71665
* g++.dg/cpp0x/pr71665-1.C: New.
* g++.dg/cpp0x/pr71665-2.C: Likewise.
* g++.dg/cpp0x/enum29.C: Adjust dg-error string.
* g++.dg/ext/label10.C: Likewise.
* g++.dg/parse/constant5.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238828 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum29.C
gcc/testsuite/g++.dg/cpp0x/pr71665-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr71665-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/label10.C
gcc/testsuite/g++.dg/parse/constant5.C