This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs 1.1.2 C++ internal compiler error
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: egcs 1.1.2 C++ internal compiler error
- From: Ian Lance Taylor <ian at airs dot com>
- Date: 31 May 1999 16:55:53 -0400
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__));
};