gcc-20001101 rejects legal c++ code
Al Elgert
elgert@rbg.informatik.tu-darmstadt.de
Mon Nov 6 12:42:00 GMT 2000
Hi
PROBLEM
I tried to compile this simple Code
main() { int *a=new int; }
but the compiler refused to work:
Undefined first referenced
symbol in file
__builtin_new /var/tmp/cc7CC8gJ.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
ENVIRONMENT
I compiled this gcc on sparc-sun-solaris2.7 with no special options
(configure --prefix...; make bootstrap; make install).
The following gcc's versions are affected:
egcs-20001009
egcs-20001016
egcs-20001023
egcs-20001030
gcc-20001101
ATTACHMENT
the output of the following command:
gcc -v -save-temps all-your-options source-file
in my case:
gcc -v -save-temps foo.cxx
greetings
Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.gz
Type: application/x-gzip
Size: 1708 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001106/25d1b3ae/attachment.bin>
More information about the Gcc-bugs
mailing list