[Bug c++/82593] Internal compiler error: in process_init_constructor_array, at cp/typeck2.c:1294
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82593 Paolo Carlini changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED Target Milestone|--- |8.0 --- Comment #4 from Paolo Carlini --- Fixed.
[Bug c++/82593] Internal compiler error: in process_init_constructor_array, at cp/typeck2.c:1294
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82593 --- Comment #3 from paolo at gcc dot gnu.org --- Author: paolo Date: Tue Dec 19 22:14:59 2017 New Revision: 255845 URL: https://gcc.gnu.org/viewcvs?rev=255845=gcc=rev Log: /cp 2017-12-19 Paolo CarliniPR c++/82593 * decl.c (check_array_designated_initializer): Not static. * cp-tree.h (check_array_designated_initializer): Declare. * typeck2.c (process_init_constructor_array): Call the latter. * parser.c (cp_parser_initializer_list): Check the return value of require_potential_rvalue_constant_expression. /testsuite 2017-12-19 Paolo Carlini PR c++/82593 * g++.dg/cpp0x/desig2.C: New. * g++.dg/cpp0x/desig3.C: Likewise. * g++.dg/cpp0x/desig4.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/cpp0x/desig2.C trunk/gcc/testsuite/g++.dg/cpp0x/desig3.C trunk/gcc/testsuite/g++.dg/cpp0x/desig4.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl.c trunk/gcc/cp/parser.c trunk/gcc/cp/typeck2.c
[Bug c++/82593] Internal compiler error: in process_init_constructor_array, at cp/typeck2.c:1294
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82593 Paolo Carlini changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com --- Comment #2 from Paolo Carlini --- Looking into it.
[Bug c++/82593] Internal compiler error: in process_init_constructor_array, at cp/typeck2.c:1294
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82593 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2017-10-18 Ever confirmed|0 |1
[Bug c++/82593] Internal compiler error: in process_init_constructor_array, at cp/typeck2.c:1294
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82593 --- Comment #1 from Antonio Ospite --- Created attachment 42387 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42387=edit Parenthesized array member initializer with enum as indices Adding a more concise test program. Using an array of scalar values instead of an array of structs also gives the ICE, this time with a nice warning: --- $ g++ -c parenthesized_array_initializer_with_enum_indices.cpp parenthesized_array_initializer_with_enum_indices.cpp: In constructor ‘SomeClass::SomeClass()’: parenthesized_array_initializer_with_enum_indices.cpp:17:3: warning: list-initializer for non-class type must not be parenthesized }) ^ parenthesized_array_initializer_with_enum_indices.cpp:17:3: internal compiler error: in process_init_constructor_array, at cp/typeck2.c:1294 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. ---