This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18733] [4.0 Regression] friend rejected
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2004 23:48:33 -0000
- Subject: [Bug c++/18733] [4.0 Regression] friend rejected
- References: <20041130043812.18733.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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