Bug with namespace and templates

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Tue Dec 15 23:41:00 GMT 1998


> a "using namespace" inside a template declaration doesn't work :/
> (egcs-1.1b, didn't try it with a later version).

Thanks for your bug report. Egcs currently doesn't do non-dependent
names right; it should make the lookup at the point of declaration
instead of the point of instantiation. The pre-parsed form of the
template does not store using directives, so they are lost at the
point of instantiation.

Regards,
Martin



More information about the Gcc-bugs mailing list