c++/3761: [2003-01-02] Template instantiation
Giovanni Bajo
giovannibajo@libero.it
Wed Apr 30 14:52:00 GMT 2003
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
More information about the Gcc-bugs
mailing list