public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/58501] New: [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter @ 2013-09-22 18:35 reichelt at gcc dot gnu.org 2013-09-22 18:39 ` [Bug c++/58501] " reichelt at gcc dot gnu.org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: reichelt at gcc dot gnu.org @ 2013-09-22 18:35 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58501 Bug ID: 58501 Summary: [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org The following valid code snippet (compiled with "-std=gnu++0x") triggers an ICE since GCC 4.7.0: ======================== struct A { ~A(); }; int foo(A = {}); int i = foo(); ======================== bug.cc: In function 'void __static_initialization_and_destruction_0(int, int)': bug.cc:8:13: internal compiler error: in create_tmp_var, at gimplify.c:438 int i = foo(); ^ 0x95b833 create_tmp_var(tree_node*, char const*) ../../gcc/gcc/gimplify.c:438 0x95d10c create_tmp_from_val ../../gcc/gcc/gimplify.c:521 0x95d10c lookup_tmp_var ../../gcc/gcc/gimplify.c:543 0x95d10c internal_get_tmp_var ../../gcc/gcc/gimplify.c:587 0x95dace gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:8153 0x966eb9 gimplify_call_expr ../../gcc/gcc/gimplify.c:2635 0x95ef88 gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:7293 0x96a00a gimplify_modify_expr ../../gcc/gcc/gimplify.c:4875 0x95e25b gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:7322 0x9620d6 gimplify_stmt(tree_node**, gimple_statement_d**) ../../gcc/gcc/gimplify.c:5699 0x95eeaf gimplify_cleanup_point_expr ../../gcc/gcc/gimplify.c:5475 0x95eeaf gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:7659 0x9620d6 gimplify_stmt(tree_node**, gimple_statement_d**) ../../gcc/gcc/gimplify.c:5699 0x95f30b gimplify_statement_list ../../gcc/gcc/gimplify.c:1525 0x95f30b gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:7711 0x9620d6 gimplify_stmt(tree_node**, gimple_statement_d**) ../../gcc/gcc/gimplify.c:5699 0x965d65 gimplify_cond_expr ../../gcc/gcc/gimplify.c:3315 0x95e292 gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:7278 0x9620d6 gimplify_stmt(tree_node**, gimple_statement_d**) ../../gcc/gcc/gimplify.c:5699 0x965d65 gimplify_cond_expr ../../gcc/gcc/gimplify.c:3315 Please submit a full bug report, [etc.] ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58501] [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter 2013-09-22 18:35 [Bug c++/58501] New: [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter reichelt at gcc dot gnu.org @ 2013-09-22 18:39 ` reichelt at gcc dot gnu.org 2013-09-23 8:22 ` rguenth at gcc dot gnu.org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: reichelt at gcc dot gnu.org @ 2013-09-22 18:39 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58501 Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work|4.6.4 | --- Comment #1 from Volker Reichelt <reichelt at gcc dot gnu.org> --- Before GCC 4.7.0 the code was wrongly rejected. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58501] [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter 2013-09-22 18:35 [Bug c++/58501] New: [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter reichelt at gcc dot gnu.org 2013-09-22 18:39 ` [Bug c++/58501] " reichelt at gcc dot gnu.org @ 2013-09-23 8:22 ` rguenth at gcc dot gnu.org 2013-11-05 14:30 ` [Bug c++/58501] [4.7/4.8/4.9 regression] [c++11] " rguenth at gcc dot gnu.org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: rguenth at gcc dot gnu.org @ 2013-09-23 8:22 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58501 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.7.4 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58501] [4.7/4.8/4.9 regression] [c++11] Crash with brace-enclosed initializer as default parameter 2013-09-22 18:35 [Bug c++/58501] New: [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter reichelt at gcc dot gnu.org 2013-09-22 18:39 ` [Bug c++/58501] " reichelt at gcc dot gnu.org 2013-09-23 8:22 ` rguenth at gcc dot gnu.org @ 2013-11-05 14:30 ` rguenth at gcc dot gnu.org 2014-01-09 17:41 ` redi at gcc dot gnu.org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: rguenth at gcc dot gnu.org @ 2013-11-05 14:30 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58501 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58501] [4.7/4.8/4.9 regression] [c++11] Crash with brace-enclosed initializer as default parameter 2013-09-22 18:35 [Bug c++/58501] New: [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter reichelt at gcc dot gnu.org ` (2 preceding siblings ...) 2013-11-05 14:30 ` [Bug c++/58501] [4.7/4.8/4.9 regression] [c++11] " rguenth at gcc dot gnu.org @ 2014-01-09 17:41 ` redi at gcc dot gnu.org 2014-01-09 17:42 ` redi at gcc dot gnu.org 2014-03-11 21:08 ` [Bug c++/58501] " reichelt at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: redi at gcc dot gnu.org @ 2014-01-09 17:41 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58501 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redi at gcc dot gnu.org --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- *** Bug 59740 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58501] [4.7/4.8/4.9 regression] [c++11] Crash with brace-enclosed initializer as default parameter 2013-09-22 18:35 [Bug c++/58501] New: [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter reichelt at gcc dot gnu.org ` (3 preceding siblings ...) 2014-01-09 17:41 ` redi at gcc dot gnu.org @ 2014-01-09 17:42 ` redi at gcc dot gnu.org 2014-03-11 21:08 ` [Bug c++/58501] " reichelt at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: redi at gcc dot gnu.org @ 2014-01-09 17:42 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58501 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-01-09 Ever confirmed|0 |1 --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- I don't think this can be classed as a regression when the syntax wasn't supported until 4.7.0, so never worked ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58501] [c++11] Crash with brace-enclosed initializer as default parameter 2013-09-22 18:35 [Bug c++/58501] New: [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter reichelt at gcc dot gnu.org ` (4 preceding siblings ...) 2014-01-09 17:42 ` redi at gcc dot gnu.org @ 2014-03-11 21:08 ` reichelt at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: reichelt at gcc dot gnu.org @ 2014-03-11 21:08 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58501 Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #4 from Volker Reichelt <reichelt at gcc dot gnu.org> --- Fixed by Jason's patch for PR60367. The testcase added there seems to cover the testcase here, so no further action is required. Marking as duplicate then. *** This bug has been marked as a duplicate of bug 60367 *** ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-03-11 21:08 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-09-22 18:35 [Bug c++/58501] New: [4.7/4.8/4.9 regression] [c++0x] Crash with brace-enclosed initializer as default parameter reichelt at gcc dot gnu.org 2013-09-22 18:39 ` [Bug c++/58501] " reichelt at gcc dot gnu.org 2013-09-23 8:22 ` rguenth at gcc dot gnu.org 2013-11-05 14:30 ` [Bug c++/58501] [4.7/4.8/4.9 regression] [c++11] " rguenth at gcc dot gnu.org 2014-01-09 17:41 ` redi at gcc dot gnu.org 2014-01-09 17:42 ` redi at gcc dot gnu.org 2014-03-11 21:08 ` [Bug c++/58501] " reichelt 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).