This is the mail archive of the gcc-help@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]

GCC 3.3 bug: 'friend class ::D<int>' does not parse unless the "::" is removed


Hi,
I'm looking for a specific patch for a problem that was present in GCC
3.2 and 3.3, and is fixed in GCC 3.4, but I cannot find a matching fix
report in the bugzilla database.

My sample is:
/****/
template <class T> class D {};
class E : public D<int> { friend class ::D<int>; };
/****/

This reports "parse error before `;' token", unless the :: qualifier is
removed.

This is almost identical to bug #8932 in the Bugzilla database. That bug
was rejected, but the code _does_ parse correctly with GCC 3.4, so
obviously something _was_ fixed.  My question is, how can I find what
the fix was?

Much obliged,
- Yuval 


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