egcs support for local classes as template arguments

Alexandre Oliva
Wed Dec 17 12:28:00 GMT 1997

Don Waugaman writes:

> In function `int main(int, char **)':
> type `main(int, char **)::Test' composed from a local class is not a valid template-argument

The Nov'97 C++ DWP says that a local class cannot be used as a
template argument.  g++/egcs could do that as an extension, as I
myself find that quite useful, but you shouldn't depend on that.

Alexandre Oliva
Universidade Estadual de Campinas, SP, Brasil

More information about the Gcc mailing list