problem with explicit template function specification
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Sat Apr 29 15:33:00 GMT 2000
> Oops, I've never seen this syntax before. I scanned the
> standard document, but found it nowhere.
> Could you please give me some hint where to look?
It's in 5.2, [expr.post]/1
# postfixÃÂexpression:
# ...
# postfixÃÂexpression . template-opt idÃÂexpression
Usually, you leave the optional template out. As Alexandre points out,
you only need to have it if the postfix-expression depends on the
template parameter (and the id-expression is meant as a template-id),
which was not the case in your example. So it still is a bug that gcc
requires it.
Regards,
Martin
More information about the Gcc-bugs
mailing list