This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18681] [3.3/3.4/4.0 Regression] template friend declaration not recognized
- From: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2004 15:02:01 -0000
- Subject: [Bug c++/18681] [3.3/3.4/4.0 Regression] template friend declaration not recognized
- References: <20041126135207.18681.wolfgang.roehrl@de.gi-de.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-11-30 15:01 -------
The problem is GCC cannot distinguish between case #1 and #2
in the code below.
template <typename T_>
class C1
{
typedef typename C2<T_>::T_PAR_TYPE T_PAR;
struct S1
{
T_PAR par1; // #1
typename C2<T_>::T_PAR_TYPE par2; // #2
};
...
};
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18681