egcs 1.1.2 C++ internal compiler error

Ian Lance Taylor ian@airs.com
Mon May 31 13:56:00 GMT 1999


I encountered an internal compiler error in egcs 1.1.2 C++.  I was
experimenting with whether I could declare a method to not return
while simultaneously defining it.  It appears that I can declare a
method to not return, and define it elsewhere, but I'm not yet sure
whether I can both declare and define it in the same place.

Anyhow, I've appended the test case.  When I put this in foo.cc and
run this `g++ -c foo.cc', I get this:

foo.cc:7: Internal compiler error.
foo.cc:7: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
foo.cc:7: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.

Ian

class foo
{
public:
  void fn ()
    {
    }
  __attribute__ ((__noreturn__));
};


More information about the Gcc-bugs mailing list