This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
GCC 3.3 bug: 'friend class ::D<int>' does not parse unless the "::" is removed
- From: "Yuval Kfir" <yuvalk at mainsoft dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 30 May 2006 07:25:18 -0700
- Subject: 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