Bad error line
Michele Bini
mbini@dada.it
Fri Apr 17 13:18:00 GMT 1998
The example code I attach gives the following errors when compiled with egcs
1.0.2 (RedHat Linux 5.0 + binutils 2.8.1.0.20, but I don't think it's
relevant):
egcs-c++ -W -Wall -Wmissing-prototypes -O2 -g t.cc -o t
t.hh: In function `static void t<float>::f()':
t.hh:11: `PI' undeclared (first use this function)
t.hh:11: (Each undeclared identifier is reported only once
t.hh:11: for each function it appears in.)
while, in my opinion, the bad file is t.cc (line numbers are OK, though :-)
Maybe a problem with template instantiation? Note that if PI is changed to
M_PI (thus removing the error) everything goes smoothly, so I suppose it's
"simply" a problem with the error-reporting code.
PS: thanks for the prompt reply to my previous (silly) bug report.
PS/2: Where can I find a known bugs list for egcs in addition to the one in
the .info files?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.shar.gz
Type: application/x-gzip
Size: 1545 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19980417/03b1a2e5/attachment.bin>
More information about the Gcc-bugs
mailing list