public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/60227] New: [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array @ 2014-02-16 18:40 reichelt at gcc dot gnu.org 2014-02-16 20:38 ` [Bug c++/60227] " glisse at gcc dot gnu.org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: reichelt at gcc dot gnu.org @ 2014-02-16 18:40 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60227 Bug ID: 60227 Summary: [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org The following invalid code snippet (compiled with "-std=c++11") triggers an ICE since GCC 4.6.1: ======================================================= void foo(int n) { int a[n]; int (&r)[n] = {}; } ======================================================= bug.cc: In function 'void foo(int)': bug.cc:4:18: internal compiler error: in tree_to_uhwi, at tree.c:7024 int (&r)[n] = {}; ^ 0xdc009c tree_to_uhwi(tree_node const*) ../../gcc/gcc/tree.c:7024 0x5ab42e build_array_conv ../../gcc/gcc/cp/call.c:953 0x5ab42e implicit_conversion ../../gcc/gcc/cp/call.c:1772 0x5ac526 reference_binding ../../gcc/gcc/cp/call.c:1490 0x5b787c initialize_reference(tree_node*, tree_node*, int, int) ../../gcc/gcc/cp/call.c:9377 0x5c787b grok_reference_init ../../gcc/gcc/cp/decl.c:4809 0x5c787b check_initializer ../../gcc/gcc/cp/decl.c:5676 0x5d99fc cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/gcc/cp/decl.c:6396 0x6c81bd cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:16815 0x6c9979 cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:11205 0x6acc63 cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:11086 0x6add81 cp_parser_declaration_statement ../../gcc/gcc/cp/parser.c:10733 0x6ae3cb cp_parser_statement ../../gcc/gcc/cp/parser.c:9467 0x6af1b9 cp_parser_statement_seq_opt ../../gcc/gcc/cp/parser.c:9745 0x6af326 cp_parser_compound_statement ../../gcc/gcc/cp/parser.c:9699 0x6c34fb cp_parser_function_body ../../gcc/gcc/cp/parser.c:18641 0x6c34fb cp_parser_ctor_initializer_opt_and_function_body ../../gcc/gcc/cp/parser.c:18677 0x6c7842 cp_parser_function_definition_after_declarator ../../gcc/gcc/cp/parser.c:22792 0x6c86e1 cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/gcc/cp/parser.c:22704 0x6c86e1 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:16585 Please submit a full bug report, [etc.] ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/60227] [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array 2014-02-16 18:40 [Bug c++/60227] New: [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array reichelt at gcc dot gnu.org @ 2014-02-16 20:38 ` glisse at gcc dot gnu.org 2014-02-17 12:33 ` rguenth at gcc dot gnu.org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: glisse at gcc dot gnu.org @ 2014-02-16 20:38 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60227 Marc Glisse <glisse at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-02-16 Ever confirmed|0 |1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/60227] [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array 2014-02-16 18:40 [Bug c++/60227] New: [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array reichelt at gcc dot gnu.org 2014-02-16 20:38 ` [Bug c++/60227] " glisse at gcc dot gnu.org @ 2014-02-17 12:33 ` rguenth at gcc dot gnu.org 2014-02-17 16:22 ` jakub at gcc dot gnu.org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-02-17 12:33 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60227 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |4.7.4 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/60227] [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array 2014-02-16 18:40 [Bug c++/60227] New: [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array reichelt at gcc dot gnu.org 2014-02-16 20:38 ` [Bug c++/60227] " glisse at gcc dot gnu.org 2014-02-17 12:33 ` rguenth at gcc dot gnu.org @ 2014-02-17 16:22 ` jakub at gcc dot gnu.org 2014-02-21 5:45 ` jason at gcc dot gnu.org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: jakub at gcc dot gnu.org @ 2014-02-17 16:22 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60227 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Most likely r171614 (r171600 works, r171625 ICEs). ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/60227] [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array 2014-02-16 18:40 [Bug c++/60227] New: [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array reichelt at gcc dot gnu.org ` (2 preceding siblings ...) 2014-02-17 16:22 ` jakub at gcc dot gnu.org @ 2014-02-21 5:45 ` jason at gcc dot gnu.org 2014-02-21 15:54 ` jason at gcc dot gnu.org 2014-02-21 15:54 ` jason at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu.org @ 2014-02-21 5:45 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60227 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/60227] [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array 2014-02-16 18:40 [Bug c++/60227] New: [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array reichelt at gcc dot gnu.org ` (3 preceding siblings ...) 2014-02-21 5:45 ` jason at gcc dot gnu.org @ 2014-02-21 15:54 ` jason at gcc dot gnu.org 2014-02-21 15:54 ` jason at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu.org @ 2014-02-21 15:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60227 --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Feb 21 15:53:43 2014 New Revision: 208009 URL: http://gcc.gnu.org/viewcvs?rev=208009&root=gcc&view=rev Log: PR c++/60227 Fix ChangeLog Modified: trunk/gcc/cp/ChangeLog trunk/gcc/testsuite/g++.dg/cpp1y/vla13.C ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/60227] [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array 2014-02-16 18:40 [Bug c++/60227] New: [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array reichelt at gcc dot gnu.org ` (4 preceding siblings ...) 2014-02-21 15:54 ` jason at gcc dot gnu.org @ 2014-02-21 15:54 ` jason at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: jason at gcc dot gnu.org @ 2014-02-21 15:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60227 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|4.7.4 |4.9.0 --- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- Fixed for 4.9. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-02-21 15:54 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-02-16 18:40 [Bug c++/60227] New: [4.7/4.8/4.9 Regression] [C++11] ICE using brace-enclosed initializer list to initialize array reichelt at gcc dot gnu.org 2014-02-16 20:38 ` [Bug c++/60227] " glisse at gcc dot gnu.org 2014-02-17 12:33 ` rguenth at gcc dot gnu.org 2014-02-17 16:22 ` jakub at gcc dot gnu.org 2014-02-21 5:45 ` jason at gcc dot gnu.org 2014-02-21 15:54 ` jason at gcc dot gnu.org 2014-02-21 15:54 ` jason at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).