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++/4934: Seg fault on legal code


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

From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, anthwil@nortelnetworks.com, gcc-bugs@gcc.gnu.org,
        nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/4934: Seg fault on legal code
Date: Fri, 21 Dec 2001 19:06:39 +0100

 Hi,
 
 the offending code can be reduced to
 
 template<unsigned>   struct A {};
 template<typename T> struct B { A<sizeof(+int())> a; };
 
 These two lines will crash gcc 3.0.x and gcc 3.1 20011210
 on i686-pc-linux-gnu and mips-sgi-irix6.5.
 Just compile with "g++ -c".
 
 Greetings,
 Volker Reichelt
 
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4934
 
 


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