C++: Another template/namespace problem
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Sun Aug 8 09:52:00 GMT 1999
> namespace N {
> template <class T> void g() {}
> }
> void (*pf)() = N::g<int>;
[...]
> whatever.C:105: Internal compiler error 373.
Thanks for your bug report. This was fixed in the mainline of gcc by
1999-05-28 Mark Mitchell <mark@codesourcery.com>
* decl.c (lookup_namespace_name): Handle getting a
TEMPLATE_ID_EXPR.
However, this patch is not in gcc 2.95. Mark, should we move this
change over?
Regards,
Martin
P.S. I haven't regression-tested whether this change works on 2.95,
but it looks like it would.
More information about the Gcc-patches
mailing list