Compiler error 980715
Karl JH Millar
kmillar@MIT.EDU
Mon Nov 30 11:48:00 GMT 1998
I get a compiler error compiling the following
/**************************************/
template<class TYPE>
void foo() {
;
}
void print(void (*func)());
main() {
print(foo<int>);
}
/**************************************/
I am using gcc version egcs-2.91.57 19980901 (egcs-1.1 release) on a GNU/Linux
system, running the 2.1.125 version of the kernel.
Here is the output of gcc -c -v bug.cc
Reading specs from /usr/local/lib/gcc-lib/i686-linux-gnu/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
/usr/local/lib/gcc-lib/i686-linux-gnu/egcs-2.91.57/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ bug.cc /tmp/ccacgBz7.ii
GNU CPP version egcs-2.91.57 19980901 (egcs-1.1 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/g++
/usr/local/include
/usr/local/i686-linux-gnu/include
/usr/local/lib/gcc-lib/i686-linux-gnu/egcs-2.91.57/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/i686-linux-gnu/egcs-2.91.57/cc1plus /tmp/ccacgBz7.ii -quiet -dumpbase bug.cc -version -o /tmp/ccyaigR5.s
GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release) (i686-linux-gnu) compiled by GNU C version egcs-2.91.57 19980901 (egcs-1.1 release).
bug.cc: In function `int main()':
bug.cc:9: Internal compiler error 980715.
bug.cc:9: Please submit a full bug report to `egcs-bugs@cygnus.com'.
Unfortunately I don't have the details of the options I compiled egcs with,
but I don't think there was anything unusual.
Let me know if you need any more info
Karl Millar.
More information about the Gcc-bugs
mailing list