This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15453] Friend declaration not treated as a declaration in scope.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2004 03:49:40 -0000
- Subject: [Bug c++/15453] Friend declaration not treated as a declaration in scope.
- References: <20040515033804.15453.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-15 03:49 -------
I had forgot to give a little better example (which is the one which works for ICC):
template<typename G, template<typename H> class I>
class J;
template<typename C, template<typename D> class B>
class F {
template<typename G, template<typename H> class I = B>
friend
class J;
template<typename K, template<typename L> class M = B>
friend
class N;
friend
class O;
J<int, B>* j;
N<int, B>* n;
O* o;
};
int main() {
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15453