This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs 1.1.2 C++ internal compiler error


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__));
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]