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

Giovanni Bajo giovannibajo@libero.it
Wed Apr 30 12:56:00 GMT 2003


The following reply was made to PR c++/3761; it has been noted by GNATS.

From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>,
	<nobody@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>,
	<francis.andre@easynet.fr>
Cc:  
Subject: Re: c++/3761: [2003-01-02] Template instantiation
Date: Wed, 30 Apr 2003 14:46:10 +0200

 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-prs mailing list