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

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).