This is the mail archive of the
mailing list for the GCC project.
Re: [C++ PATCH] Friend class and DR 180
Jason Merrill wrote:
On Tue, 26 Nov 2002 17:57:38 +0700, Kriang Lerdsuwanakij <email@example.com> wrote:
The following patch fixes a friend class issue relating to DR 180.
Does the compiler accept the correct syntax?
We currently accept the code
friend typename A::B;
but according to DR 180, the correct syntax should be
friend class A::B;
The current GCC accepts both. With the patch, only the correct
syntax is accepted.