g++ ICE in fix_lexical_addr

scott snyder snyder@fnal.gov
Sat Feb 26 16:44:00 GMT 2000


hi -

The CVS version of g++ (2.96 20000226) on an i686-pc-linux-gnu platform (RH6.1)
gives an ICE on this code:

- egcsbug5.cc --------------------------------------------------------
class complex
{
public:
  complex(int);
};

struct MLC33
{
  MLC33( const complex& = complex(0) );
};

void EmptyClone()
{
  new MLC33();
}

void makeM33()
{
  new MLC33();
}

void Clone()
{
  new MLC33();
}

----------------------------------------------------------------------

$ ./cc1plus egcsbug5.cc
void EmptyClone ()void makeM33 ()void Clone ()
egcsbug5.cc:24: Internal compiler error in `fix_lexical_addr', at
egcsbug5.cc:24: function.c:5306
egcsbug5.cc:24: Please submit a full bug report.
egcsbug5.cc:24: See <URL: http://www.gnu.org/software/gcc/bugs.html > for
egcsbug5.cc:24: instructions.


thanks,
sss


More information about the Gcc-bugs mailing list