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]

Re: c++/3761: [2003-01-02] Template instantiation


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3761

Reduced snippet:
-------------------------------------------------
struct A
{
    enum E1 {};
};

struct B
{
    enum E2 {};
};

template <class T>
struct Foo : A,B
{
    void func(void);

    struct Nested
    {
        friend void Foo::func(void);
    };
};
-------------------------------------------------
pr3761.cpp:19: internal compiler error: tree check: expected class 'd', have
'x' (tree_list) in check_template_shadow, at cp/pt.c:2013
Please submit a full bug report,

This ICEs GCC since at least 2.95. Confirmed up to 3.4 20030430.

Giovanni Bajo


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