This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/18733] [4.0 Regression] friend rejected


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]