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

* [Bug c++/58651] [4.7/4.8/4.9 Regression] ICE with invalid initializer list
  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 ` rguenth at gcc dot gnu.org
  2013-11-05 14:52 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-10-10 11:57 UTC (permalink / raw)
  To: gcc-bugs

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

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++/58651] [4.7/4.8/4.9 Regression] ICE with invalid initializer list
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-05 14:52 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-11-05
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.


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

* [Bug c++/58651] [4.7/4.8/4.9 Regression] ICE with invalid initializer list
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-12-04 13:14 UTC (permalink / raw)
  To: gcc-bugs

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

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 #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
A CONSTRUCTOR with init_list_type_node TREE_TYPE makes it all the way through
to gimplification, which expectedly ICEs on it.


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

* [Bug c++/58651] [4.7/4.8/4.9 Regression] ICE with invalid initializer list
  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
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-01-27 16:27 UTC (permalink / raw)
  To: gcc-bugs

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

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++/58651] [4.7/4.8/4.9 Regression] ICE with invalid initializer list
  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
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-01-28 13:59 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|4.7.4                       |4.8.3

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.8.3/4.9.  Not applying to 4.7.


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

* [Bug c++/58651] [4.7/4.8/4.9 Regression] ICE with invalid initializer list
  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
                   ` (4 preceding siblings ...)
  2014-01-28 13:59 ` jason at gcc dot gnu.org
@ 2014-01-29 20:51 ` reichelt at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-01-29 20:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
Just for the records:
The bug was fixed by Jason's patch for PR58812 which also contains the above
testcase.


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