This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3761: [2003-01-02] Template instantiation
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: <gcc-gnats at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>,<nobody at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>,<francis dot andre at easynet dot fr>
- Date: Wed, 30 Apr 2003 14:46:10 +0200
- Subject: 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