[Bug c++/12712] New: ICE on short legit C++ code fragment with gcc 3.3.2

gccbug at gammarayburst dot de gcc-bugzilla@gcc.gnu.org
Tue Oct 21 19:45: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=12712

           Summary: ICE on short legit C++ code fragment with gcc 3.3.2
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gccbug at gammarayburst dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

The following valid C++ code gives an ICE with gcc 3.3.2
when no optimization is used. With -O, -O2 or -O3 the code
compiles.

struct A
{
  ~A();
  float f(float x);
  float g() const {return 0;}
};

void h()
{
  A a, b;
  a.f(b.g() + 1);
}



More information about the Gcc-bugs mailing list