From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mumit Khan To: Thomas Matelich Cc: egcs-bugs@egcs.cygnus.com Subject: Re: ICE Date: Thu, 08 Jul 1999 22:17:00 -0000 Message-id: <199907090517.AAA28949@mercury.xraylith.wisc.edu> References: <3784DBCA.1077A3E4@usa.net> X-SW-Source: 1999-07/msg00331.html List-Id: Thomas Matelich writes: > typedef.cc: > --------------- > #include > > typedef std::complex complex; > > int main() > { > complex x; > > x += 1; > > return 0; > } > tom> g++ -v -fhonor-std typedef_std.cc Note that gcc-2.95 will report, using -fhonor-std: typedef-bug1.cc:3: syntax error before `;' typedef-bug1.cc: In function `int main()': typedef-bug1.cc:7: `complex' undeclared (first use this function) typedef-bug1.cc:7: (Each undeclared identifier is reported only once typedef-bug1.cc:7: for each function it appears in.) typedef-bug1.cc:7: parse error before `;' typedef-bug1.cc:9: `x' undeclared (first use this function) unless you wrap `#include ' in the std namespace. Until the new standard compliant C++ library[1] is released, I'm afraid it'll remain that way when you -fhonor-std. The compiler bug is fixed in upcoming gcc-2.95. The library limitation is a another issue. [1] See http://sourceware.cygnus.com/libstdc++/ Regards, Mumit