This is the mail archive of the gcc-prs@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++/3079: ICE in c_expand_expr, at c-common.c:3521


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

From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: gdr@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
        philippeb@corel.com
Cc:  
Subject: Re: c++/3079: ICE in c_expand_expr, at c-common.c:3521
Date: Fri, 29 Nov 2002 13:42:16 +0100

 Hi,
 
 here's a slightly cleaned-up testcase (it crashes gcc 2.95.x, 3.0.x, the
 3.2-branch and mainline):
 
 -----------------------------snip here------------------------
 template <typename T> struct B
 {
     typedef T X;
 };
 
 template <typename T> void foo(T)
 {
     foo(T::X);  // illegal
 }
 
 template <> void foo(int) {}
 
 void bar()
 {
     foo(B<int>());
 }
 -----------------------------snip here------------------------
 
 Regards,
 Volker
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3079
 
 


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