This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13935] [3.4/3.5 Regression] Template friend lookup bug
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2004 17:10:30 -0000
- Subject: [Bug c++/13935] [3.4/3.5 Regression] Template friend lookup bug
- References: <20040130165003.13935.giovannibajo@libero.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-01-30 17:10 -------
It fails with the same error on 3.3.3-pre.
However, I'm not sure whether this is not illegal: you first say
friend class B;
but then you declare B as a template:
template <typename TP2> class B
What confuses me is that this is not detected.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.4.0 3.5.0 |3.4.0 3.5.0 3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13935