public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58651] New: [4.7/4.8/4.9 Regression] ICE with invalid initializer list
@ 2013-10-06 21:16 reichelt at gcc dot gnu.org
  2013-10-10 11:57 ` [Bug c++/58651] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-10-06 21:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58651

            Bug ID: 58651
           Summary: [4.7/4.8/4.9 Regression] ICE with invalid initializer
                    list
           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 invalid code snippet (compiled with "-std=11") triggers an ICE
since GCC 4.4.1:

==============================
struct A
{
  int i;
  A(int j) : i{{j}} {}
};

A a(0);
==============================

bug.cc: In constructor 'A::A(int)':
bug.cc:4:19: internal compiler error: in gimplify_init_constructor, at
gimplify.c:4236
   A(int j) : i{{j}} {}
                   ^
0x96f293 gimplify_init_constructor
        ../../gcc/gcc/gimplify.c:4236
0x970a7e gimplify_modify_expr_rhs
        ../../gcc/gcc/gimplify.c:4518
0x970de4 gimplify_modify_expr
        ../../gcc/gcc/gimplify.c:4834
0x9661d5 gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7332
0x9691a6 gimplify_stmt(tree_node**, gimple_statement_d**)
        ../../gcc/gcc/gimplify.c:5709
0x9656fe gimplify_cleanup_point_expr
        ../../gcc/gcc/gimplify.c:5485
0x9656fe gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7669
0x9691a6 gimplify_stmt(tree_node**, gimple_statement_d**)
        ../../gcc/gcc/gimplify.c:5709
0x969e7d gimplify_bind_expr
        ../../gcc/gcc/gimplify.c:1213
0x965f50 gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7503
0x9691a6 gimplify_stmt(tree_node**, gimple_statement_d**)
        ../../gcc/gcc/gimplify.c:5709
0x96a821 gimplify_body(tree_node*, bool)
        ../../gcc/gcc/gimplify.c:8366
0x96acb6 gimplify_function_tree(tree_node*)
        ../../gcc/gcc/gimplify.c:8498
0x802f37 analyze_function
        ../../gcc/gcc/cgraphunit.c:636
0x804224 analyze_functions
        ../../gcc/gcc/cgraphunit.c:1002
0x805739 finalize_compilation_unit()
        ../../gcc/gcc/cgraphunit.c:2260
0x618920 cp_write_global_declarations()
        ../../gcc/gcc/cp/decl2.c:4365
Please submit a full bug report, [etc.]


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-29 20:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-06 21:16 [Bug c++/58651] New: [4.7/4.8/4.9 Regression] ICE with invalid initializer list reichelt at gcc dot gnu.org
2013-10-10 11:57 ` [Bug c++/58651] " rguenth at gcc dot gnu.org
2013-11-05 14:52 ` rguenth at gcc dot gnu.org
2013-12-04 13:14 ` jakub at gcc dot gnu.org
2014-01-27 16:27 ` jason at gcc dot gnu.org
2014-01-28 13:59 ` jason at gcc dot gnu.org
2014-01-29 20:51 ` 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).