Internal compiler error (with invalid namespace code)

bjornw@fairplay.no bjornw@fairplay.no
Mon Dec 28 02:46:00 GMT 1998


Hi there!

egcs-19981109
RedHat-5.2

The following simple, yet buggy code generates internal compiler error. 
btw, is it possible for the compiler to inform me about where in the code
the compiler gets an error? Or at least give some hint about which lines it
were successful to compile so that in cases where the compiler just stops
working I can easier find the offending code?

--------------------
namespace ns {};
struct    some_struct {};

int
main()
{
   some_struct s;

   s.ns; // using a namespace variable after a struct, woes
}
---------------------

bjornw@eder:~/tmp# g++ bug.cc
hei.cc: In function `int main()':
hei.cc:11: Internal compiler error.
hei.cc:11: Please submit a full bug report to `egcs-bugs@cygnus.com'.
bjornw@eder:~/tmp# 

-------------------------------------------------------
Bjørn Wennberg              email: bjornw@fairplay.no 
                               ms: +47 950 82 657
Senior Programmer           phone: +47 22405538
FairPlay International AS     fax: +47 22405539



More information about the Gcc-bugs mailing list