re PR c++/58882 (ICE with invalid C99 style designated initializers)
authorPaolo Carlini <paolo@gcc.gnu.org>
Mon, 15 Dec 2014 16:16:29 +0000 (16:16 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 15 Dec 2014 16:16:29 +0000 (16:16 +0000)
commit6bfb1253a46494591e0e5073dd08ed30d184e867
treed0e50a626b6c10c71461ed44a9cd555e72700f32
parentd06790a0b2e733c39033a32d00fa522ecb0308b1
re PR c++/58882 (ICE with invalid C99 style designated initializers)

/cp
2014-12-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58882
* decl.c (check_array_designated_initializer): Diagnose gracefully
C99 designators which aren't integral constant-expressions; allow
constexpr user-defined type conversion operators.

/testsuite
2014-12-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58882
* g++.dg/ext/desig8.C: New.
* g++.dg/cpp0x/desig1.C: Likewise.

From-SVN: r218752
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/desig1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/desig8.C [new file with mode: 0644]