Internal Error, Test<void> instantiation

Carl Nygard cnygard@bellatlantic.net
Thu Sep 30 17:55:00 GMT 1999


Here is a trivial problem, but the compiler generates an Internal
error...

template <class RT>
class Test {
   Test(const RT& rt = RT()) {}
};


The '= RT()' part is what causes the compiler error.  without it, it
generates normal messages.

Regards,
Carl
bug2.tar.gz



More information about the Gcc-bugs mailing list