[Bug c++/12519] [3.4 regression] ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Oct 5 19:40:00 GMT 2003


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



More information about the Gcc-bugs mailing list