GCC Bug
Luke B. Bishop
nanosoft@nanosoft.hypermart.net
Sun Oct 24 11:06:00 GMT 1999
GCC V2.91.66 (egcs-1.1.2) has a bug in the handling of templates.
Attached is a very very short example program that causes this bug. The
program itself has an error which should abort compilation, however,
there should be a message printed regarding the type of error, while an
"internal compiler error" is reported.
This seems like a very specialized case, however, in one of our
(soon-to-be-made-public) libraries, this can actually be a rather common
error.
--
Luke B. Bishop,
Senior Software Engineer,
Nanosoft Technologies, Inc., http://nanosoft.hypermart.net/
"Software For The Real World"
// Minimal example of the spurious compiler error
#include <stdio.h>
template <class A>
class test : public A {
test()
{
CallBase();
}
};
int main()
{
test<int> mytest;
}
More information about the Gcc-bugs
mailing list