This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7641: friend declaration of nested types doesn't compile
- From: bangerth at dealii dot org
- To: dv at vollmann dot ch, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 22 Nov 2002 02:17:03 -0000
- Subject: Re: c++/7641: friend declaration of nested types doesn't compile
- Reply-to: bangerth at dealii dot org, dv at vollmann dot ch, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: friend declaration of nested types doesn't compile
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Nov 21 18:17:02 2002
State-Changed-Why:
Confirmed. I don't know what the procedure is when something
is a regression from egcs times, but I mark this report as
"high" anyway; people can still downgrade it again.
The situation has gotten worse, by the way, since this
code
-------------------------------
template<class T> struct A {
struct B { };
};
class C {
template<class T> friend struct A<T>::B;
};
------------------------
now not only is rejected, but also triggers the
no-implicit-typename warning, which is clearly in appropriate
here...
This adds to the long list of PRs about friends and
templates/namespaces. Presently I have
8355, 8280, 8099, 53, 641, 765, 1016, 8591, 7641
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7641