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++/14281] Regression in v3.4: friend class not working


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-02-25 02:22 -------
Here's a minimal testcase showing the problem.
I guess, gcc is actually right when rejecting the code
(it does so since 3.3), but I'm not sure.

=====================================================
template <typename T> struct A : public T::X {};

class B
{
    template <typename> friend class A;
    struct X {};
};

A<B> a;
=====================================================


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14281


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