public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761
@ 2003-10-05 17:42 olh at suse dot de
  2003-10-05 17:44 ` [Bug c++/12519] " olh at suse dot de
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: olh at suse dot de @ 2003-10-05 17:42 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: internal compiler error: tree check: in
                    genrtl_cleanup_stmt, at c-semantics.c:761
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: olh at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-unknown-linux
  GCC host triplet: powerpc-unknown-linux
GCC target triplet: powerpc-unknown-linux

kdebeta:~/qt-x11-free-3.2.1/src/moc $ ~toolchain/gcc34/bin/g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/kdebeta/qt-x11-free-3.2.1/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../include -I../tools -I. -o ./qdatetime.o ../tools/qdatetime.cpp -v -v --save-temps
g++: warning: -pipe ignored because -save-temps specified
Reading specs from /home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/specs
Configured with: /home/toolchain/gcc-head/configure --prefix=/home/toolchain/gcc34 --enable-languages=c,c++ --enable-version-specific-runtime-libs --disable-nls
Thread model: posix
gcc version 3.4 20031005 (experimental)
 /home/toolchain/gcc34/libexec/gcc/powerpc-unknown-linux-gnu/3.4/cc1plus -E -quiet -v -v -I/home/kdebeta/qt-x11-free-3.2.1/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../include -I../tools -I. -D_GNU_SOURCE -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS ../tools/qdatetime.cpp -O2 -o qdatetime.ii
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/../../../../powerpc-unknown-linux-gnu/include"
ignoring duplicate directory "."
#include "..." search starts here:
#include <...> search starts here:
 /home/kdebeta/qt-x11-free-3.2.1/mkspecs/linux-g++
 .
 /usr/include/freetype2
 ../../include
 ../tools
 /home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/include/c++
 /home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/include/c++/powerpc-unknown-linux-gnu
 /home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/include/c++/backward
 /home/toolchain/gcc34/include
 /home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/include
 /usr/include
End of search list.
 /home/toolchain/gcc34/libexec/gcc/powerpc-unknown-linux-gnu/3.4/cc1plus -fpreprocessed qdatetime.ii -quiet -dumpbase qdatetime.cpp -auxbase-strip ./qdatetime.o -O2 -version -o qdatetime.s
GNU C++ version 3.4 20031005 (experimental) (powerpc-unknown-linux-gnu)
        compiled by GNU C version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
../tools/qstring.h: In member function `QString QDate::toString(Qt::DateFormat) const':
../tools/qstring.h:1035: internal compiler error: tree check: expected class 'd', have 'r' (indirect_ref) in genrtl_cleanup_stmt, at c-semantics.c:761
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
kdebeta:~/qt-x11-free-3.2.1/src/moc $ /home/toolchain/gcc34/libexec/gcc/powerpc-unknown-linux-gnu/3.4/cc1plus -fpreprocessed qdatetime.ii -quiet -dumpbase qdatetime.cpp -auxbase-strip ./qdatetime.o -O2 -version -o qdatetime.s -v
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/../../../../powerpc-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/include/c++
 /home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/include/c++/powerpc-unknown-linux-gnu
 /home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/include/c++/backward
 /home/toolchain/gcc34/include
 /home/toolchain/gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/include
 /usr/include
End of search list.
GNU C++ version 3.4 20031005 (experimental) (powerpc-unknown-linux-gnu)
        compiled by GNU C version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
../tools/qstring.h: In member function `QString QDate::toString(Qt::DateFormat) const':
../tools/qstring.h:1035: internal compiler error: tree check: expected class 'd', have 'r' (indirect_ref) in genrtl_cleanup_stmt, at c-semantics.c:761
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c++/12519] internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761
  2003-10-05 17:42 [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761 olh at suse dot de
@ 2003-10-05 17:44 ` olh at suse dot de
  2003-10-05 19:40 ` [Bug c++/12519] [3.4 regression] ICE " reichelt at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: olh at suse dot de @ 2003-10-05 17:44 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From olh at suse dot de  2003-10-05 17:44 -------
Created an attachment (id=4892)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4892&action=view)
pr12519.tar.bz2 


qdatetime.ii


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

* [Bug c++/12519] [3.4 regression] ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761
  2003-10-05 17:42 [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761 olh at suse dot de
  2003-10-05 17:44 ` [Bug c++/12519] " olh at suse dot de
@ 2003-10-05 19:40 ` reichelt at gcc dot gnu dot org
  2003-10-06 18:27 ` janis187 at us dot ibm dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-05 19:40 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|powerpc-unknown-linux       |
   GCC host triplet|powerpc-unknown-linux       |
 GCC target triplet|powerpc-unknown-linux       |
           Keywords|                            |ice-on-valid-code
           Priority|P2                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2003-10-05 19:40:44
               date|                            |
            Summary|internal compiler error:    |[3.4 regression] ICE tree
                   |tree check: in              |check: in
                   |genrtl_cleanup_stmt, at c-  |genrtl_cleanup_stmt, at c-
                   |semantics.c:761             |semantics.c:761


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-10-05 19:40 -------
Here's a reduced code snippet that crashes on i686-pc-linux-gnu:
when compiled with "-O":

======================================
struct A
{
    ~A();
};

inline const A foo()
{
    A a;
    return a;
}

A bar()
{
    return foo();
}
======================================

This seems to be a problem with the const qualifier.

I'm removing the target/build/host-triples since this seems
to be a generic problem.

It's a regression that was introduced in August according to Phil's
regression hunter:
: Search converges between 2003-08-20-trunk (#378) and 2003-08-21-trunk (#379).


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

* [Bug c++/12519] [3.4 regression] ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761
  2003-10-05 17:42 [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761 olh at suse dot de
  2003-10-05 17:44 ` [Bug c++/12519] " olh at suse dot de
  2003-10-05 19:40 ` [Bug c++/12519] [3.4 regression] ICE " reichelt at gcc dot gnu dot org
@ 2003-10-06 18:27 ` janis187 at us dot ibm dot com
  2003-10-07 19:14 ` jason at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: janis187 at us dot ibm dot com @ 2003-10-06 18:27 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


janis187 at us dot ibm dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com


------- Additional Comments From janis187 at us dot ibm dot com  2003-10-06 18:27 -------
The regression in PR 12519 was introduced or exposed by this patch:

--- gcc/gcc/cp/ChangeLog ---

2003-08-20  Jason Merrill  <jason@redhat.com>

        * semantics.c (simplify_aggr_init_expr): Split out from
        simplify_aggr_init_exprs_r.  Convert slot address to match
        the return type.
        * cp-tree.h: Declare it.
        * tree.c (cp_copy_res_decl_for_inlining): Don't clobber the
        DECL_NAME of a user variable.

The regression hunt took place on i686-pc-linux-gnu using the small
test case from comment #2 compiled with -O2.


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

* [Bug c++/12519] [3.4 regression] ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761
  2003-10-05 17:42 [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761 olh at suse dot de
                   ` (2 preceding siblings ...)
  2003-10-06 18:27 ` janis187 at us dot ibm dot com
@ 2003-10-07 19:14 ` jason at gcc dot gnu dot org
  2003-10-07 22:09 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2003-10-07 19:14 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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

* [Bug c++/12519] [3.4 regression] ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761
  2003-10-05 17:42 [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761 olh at suse dot de
                   ` (3 preceding siblings ...)
  2003-10-07 19:14 ` jason at gcc dot gnu dot org
@ 2003-10-07 22:09 ` cvs-commit at gcc dot gnu dot org
  2003-10-07 22:10 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-07 22:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-10-07 22:09 -------
Subject: Bug 12519

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jason@gcc.gnu.org	2003-10-07 22:09:42

Added files:
	gcc/testsuite/g++.dg/opt: inline5.C 

Log message:
	PR c++/12519
	* c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
	it isn't a decl.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/inline5.C.diff?cvsroot=gcc&r1=NONE&r2=1.1


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

* [Bug c++/12519] [3.4 regression] ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761
  2003-10-05 17:42 [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761 olh at suse dot de
                   ` (4 preceding siblings ...)
  2003-10-07 22:09 ` cvs-commit at gcc dot gnu dot org
@ 2003-10-07 22:10 ` cvs-commit at gcc dot gnu dot org
  2003-10-07 22:40 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-07 22:10 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-10-07 22:10 -------
Subject: Bug 12519

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jason@gcc.gnu.org	2003-10-07 22:10:38

Modified files:
	gcc            : ChangeLog c-semantics.c 

Log message:
	PR c++/12519
	* c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
	it isn't a decl.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1329&r2=2.1330
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-semantics.c.diff?cvsroot=gcc&r1=1.72&r2=1.73


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

* [Bug c++/12519] [3.4 regression] ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761
  2003-10-05 17:42 [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761 olh at suse dot de
                   ` (5 preceding siblings ...)
  2003-10-07 22:10 ` cvs-commit at gcc dot gnu dot org
@ 2003-10-07 22:40 ` pinskia at gcc dot gnu dot org
  2003-10-08 14:00 ` reichelt at gcc dot gnu dot org
  2003-10-08 14:02 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-07 22:40 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-07 22:40 -------
Fixed for 3.4.


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

* [Bug c++/12519] [3.4 regression] ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761
  2003-10-05 17:42 [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761 olh at suse dot de
                   ` (6 preceding siblings ...)
  2003-10-07 22:40 ` pinskia at gcc dot gnu dot org
@ 2003-10-08 14:00 ` reichelt at gcc dot gnu dot org
  2003-10-08 14:02 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-08 14:00 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jss at ast dot cam dot ac
                   |                            |dot uk


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-10-08 14:00 -------
*** Bug 12040 has been marked as a duplicate of this bug. ***


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

* [Bug c++/12519] [3.4 regression] ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761
  2003-10-05 17:42 [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761 olh at suse dot de
                   ` (7 preceding siblings ...)
  2003-10-08 14:00 ` reichelt at gcc dot gnu dot org
@ 2003-10-08 14:02 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-08 14:02 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4


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

end of thread, other threads:[~2003-10-08 14:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-05 17:42 [Bug c++/12519] New: internal compiler error: tree check: in genrtl_cleanup_stmt, at c-semantics.c:761 olh at suse dot de
2003-10-05 17:44 ` [Bug c++/12519] " olh at suse dot de
2003-10-05 19:40 ` [Bug c++/12519] [3.4 regression] ICE " reichelt at gcc dot gnu dot org
2003-10-06 18:27 ` janis187 at us dot ibm dot com
2003-10-07 19:14 ` jason at gcc dot gnu dot org
2003-10-07 22:09 ` cvs-commit at gcc dot gnu dot org
2003-10-07 22:10 ` cvs-commit at gcc dot gnu dot org
2003-10-07 22:40 ` pinskia at gcc dot gnu dot org
2003-10-08 14:00 ` reichelt at gcc dot gnu dot org
2003-10-08 14:02 ` reichelt 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).