public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40948]  New: ICE in lower_stmt, at gimple-low.c:408
@ 2009-08-03  9:17 lindevel at gmx dot net
  2009-08-03  9:17 ` [Bug c++/40948] " lindevel at gmx dot net
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: lindevel at gmx dot net @ 2009-08-03  9:17 UTC (permalink / raw)
  To: gcc-bugs

testclass.cpp: In constructor ‘TestClass::TestClass()’:
testclass.cpp:13: internal compiler error: in lower_stmt, at gimple-low.c:408

Please tell me if you need more information.

The error vanishes if the definition of TestClass::TestClass() is moved into
the declaration of TestClass.

Version: gcc (Gentoo 4.4.1 p1.0) 4.4.1


-- 
           Summary: ICE in lower_stmt, at gimple-low.c:408
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lindevel at gmx dot net
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
@ 2009-08-03  9:17 ` lindevel at gmx dot net
  2009-08-03  9:21 ` lindevel at gmx dot net
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: lindevel at gmx dot net @ 2009-08-03  9:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from lindevel at gmx dot net  2009-08-03 09:17 -------
Created an attachment (id=18286)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18286&action=view)
TestClass source


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
  2009-08-03  9:17 ` [Bug c++/40948] " lindevel at gmx dot net
@ 2009-08-03  9:21 ` lindevel at gmx dot net
  2009-08-03  9:35 ` jakub at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: lindevel at gmx dot net @ 2009-08-03  9:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from lindevel at gmx dot net  2009-08-03 09:21 -------
Created an attachment (id=18287)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18287&action=view)
TestClass preprocessed source (compressed)


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
  2009-08-03  9:17 ` [Bug c++/40948] " lindevel at gmx dot net
  2009-08-03  9:21 ` lindevel at gmx dot net
@ 2009-08-03  9:35 ` jakub at gcc dot gnu dot org
  2009-08-03 11:04 ` jakub at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-08-03  9:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2009-08-03 09:34 -------
Indeed, GIMPLE_WITH_CLEANUP_EXPR in the IL after gimplification.
On the trunk this ICEs too, with type verification failure.
Distilling a testcase.


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
                   ` (2 preceding siblings ...)
  2009-08-03  9:35 ` jakub at gcc dot gnu dot org
@ 2009-08-03 11:04 ` jakub at gcc dot gnu dot org
  2009-08-03 11:10 ` jakub at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-08-03 11:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2009-08-03 11:04 -------
Simplified testcase:
struct M
{
  M () {}
  ~M () {}
};

struct S
{
  S ();
  M m[1];
};

S::S () : m ((M[1]) { M () })
{
}


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
                   ` (3 preceding siblings ...)
  2009-08-03 11:04 ` jakub at gcc dot gnu dot org
@ 2009-08-03 11:10 ` jakub at gcc dot gnu dot org
  2009-08-03 12:07 ` jakub at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-08-03 11:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2009-08-03 11:09 -------
This ICEs since somewhen between r134096 and r134281, likely PR35708.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu dot org


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
                   ` (4 preceding siblings ...)
  2009-08-03 11:10 ` jakub at gcc dot gnu dot org
@ 2009-08-03 12:07 ` jakub at gcc dot gnu dot org
  2009-08-03 14:58 ` jakub at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-08-03 12:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2009-08-03 12:07 -------
ctor initializer isn't needed, this ICEs as well:
struct M
{
  M () {}
  ~M () {}
};

void
foo ()
{
  M m[1] = (M[1]) { M () };
}

and the ICE on the trunk is for the same reason, GIMPLE_WITH_CLEANUP_EXPR left
in the IL during gimplification, presumably because there wasn't any
immediately surrounding CLEANUP_POINT_EXPR.


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
                   ` (5 preceding siblings ...)
  2009-08-03 12:07 ` jakub at gcc dot gnu dot org
@ 2009-08-03 14:58 ` jakub at gcc dot gnu dot org
  2009-08-03 15:11 ` jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-08-03 14:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2009-08-03 14:57 -------
Seems this is cleanup of the finish_compound_literal returned TARGET_EXPR vs.
TRY_BLOCK added by build_vec_init for the from_array != 2 case.
The TARGET_EXPR with cleanup is only referenced from within stmts inside of the
TRY_BLOCK, yet the corresponding CLEANUP_POINT_EXPR is only added outside of
the TRY_BLOCK and thus gimplification doesn't find the
GIMPLE_WITH_CLEANUP_EXPR.


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
                   ` (6 preceding siblings ...)
  2009-08-03 14:58 ` jakub at gcc dot gnu dot org
@ 2009-08-03 15:11 ` jakub at gcc dot gnu dot org
  2009-08-04  2:10 ` jason at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-08-03 15:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2009-08-03 15:11 -------
Created an attachment (id=18290)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18290&action=view)
gcc45-pr40948.patch

Untested patch.


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
                   ` (7 preceding siblings ...)
  2009-08-03 15:11 ` jakub at gcc dot gnu dot org
@ 2009-08-04  2:10 ` jason at gcc dot gnu dot org
  2009-08-04  2:27 ` jason at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-08-04  2:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jason at gcc dot gnu dot org  2009-08-04 02:10 -------
Subject: Bug 40948

Author: jason
Date: Tue Aug  4 02:10:05 2009
New Revision: 150394

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150394
Log:
        PR c++/40948
        * init.c (build_vec_init): Look through a TARGET_EXPR around a
        CONSTRUCTOR.

Added:
    trunk/gcc/testsuite/g++.dg/ext/complit12.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
                   ` (8 preceding siblings ...)
  2009-08-04  2:10 ` jason at gcc dot gnu dot org
@ 2009-08-04  2:27 ` jason at gcc dot gnu dot org
  2009-08-06 16:25 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-08-04  2:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jason at gcc dot gnu dot org  2009-08-04 02:26 -------
Subject: Bug 40948

Author: jason
Date: Tue Aug  4 02:26:34 2009
New Revision: 150395

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150395
Log:
        PR c++/40948
        * init.c (build_vec_init): Look through a TARGET_EXPR around a
        CONSTRUCTOR.


Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ext/complit12.C
      - copied unchanged from r150394,
trunk/gcc/testsuite/g++.dg/ext/complit12.C
Modified:
    branches/gcc-4_4-branch/gcc/cp/ChangeLog
    branches/gcc-4_4-branch/gcc/cp/init.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
                   ` (9 preceding siblings ...)
  2009-08-04  2:27 ` jason at gcc dot gnu dot org
@ 2009-08-06 16:25 ` jason at gcc dot gnu dot org
  2009-08-06 17:22 ` jason at gcc dot gnu dot org
  2009-10-14  4:47 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-08-06 16:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from jason at gcc dot gnu dot org  2009-08-06 16:25 -------
Subject: Bug 40948

Author: jason
Date: Thu Aug  6 16:25:19 2009
New Revision: 150529

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150529
Log:
        PR c++/40948
        * init.c (build_vec_init): Evaluate the initializer before
        starting the initialization try block.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/ext/complit12.C


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
                   ` (10 preceding siblings ...)
  2009-08-06 16:25 ` jason at gcc dot gnu dot org
@ 2009-08-06 17:22 ` jason at gcc dot gnu dot org
  2009-10-14  4:47 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-08-06 17:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from jason at gcc dot gnu dot org  2009-08-06 17:22 -------
Subject: Bug 40948

Author: jason
Date: Thu Aug  6 17:22:19 2009
New Revision: 150533

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150533
Log:
        PR c++/40948
        * init.c (build_vec_init): Evaluate the initializer before
        starting the initialization try block.


Modified:
    branches/gcc-4_4-branch/gcc/cp/ChangeLog
    branches/gcc-4_4-branch/gcc/cp/init.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ext/complit12.C


-- 


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


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

* [Bug c++/40948] ICE in lower_stmt, at gimple-low.c:408
  2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
                   ` (11 preceding siblings ...)
  2009-08-06 17:22 ` jason at gcc dot gnu dot org
@ 2009-10-14  4:47 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-10-14  4:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2009-10-14 04:47 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.2


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


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

end of thread, other threads:[~2009-10-14  4:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-03  9:17 [Bug c++/40948] New: ICE in lower_stmt, at gimple-low.c:408 lindevel at gmx dot net
2009-08-03  9:17 ` [Bug c++/40948] " lindevel at gmx dot net
2009-08-03  9:21 ` lindevel at gmx dot net
2009-08-03  9:35 ` jakub at gcc dot gnu dot org
2009-08-03 11:04 ` jakub at gcc dot gnu dot org
2009-08-03 11:10 ` jakub at gcc dot gnu dot org
2009-08-03 12:07 ` jakub at gcc dot gnu dot org
2009-08-03 14:58 ` jakub at gcc dot gnu dot org
2009-08-03 15:11 ` jakub at gcc dot gnu dot org
2009-08-04  2:10 ` jason at gcc dot gnu dot org
2009-08-04  2:27 ` jason at gcc dot gnu dot org
2009-08-06 16:25 ` jason at gcc dot gnu dot org
2009-08-06 17:22 ` jason at gcc dot gnu dot org
2009-10-14  4:47 ` pinskia at gcc dot gnu dot 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).