Error inheriting from template with default parameters
Andrey Slepuhin
pooh@msu.net
Wed Feb 18 19:08:00 GMT 1998
Hi again,
It seems that usage of X<>, where X is template having default
values for *all* parameters is totally broken in egcs-980205
and egcs-980214 at least on i486-pc-linux-gnu target (but works
fine on powerpc-ibm-aix4.2.1.0), because even the following
example gives internal compiler error:
-------------------------------
template <int S=0>
struct X
{};
void main()
{
X<> x;
}
--------------------------------
Andrey.
More information about the Gcc-bugs
mailing list