[Bug c++/18681] [3.3/3.4/4.0 Regression] template friend declaration not recognized

lerdsuwa at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 30 15:02:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list