This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]