[Bug c++/18733] [4.0 Regression] friend rejected
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Fri Dec 17 23:48:00 GMT 2004
------- Additional Comments From giovannibajo at libero dot it 2004-12-17 23:48 -------
Yes, that's the problem. The whole point is that the parser does not have
enough context information to fully check for the number of template headers:
there is an off-by-one possible error it has to allow. For instance:
template <>
void A<int>::foo(void);
The correctness of this depends on whether A<int> uses an explicit
specialization or not. So yes, we could unify this for 4.1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18733
More information about the Gcc-bugs
mailing list