c++/8164: internal error: segmentation fault

Volker Reichelt reichelt@igpm.rwth-aachen.de
Tue Nov 5 09:16:00 GMT 2002


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

From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: schnoerr@mailzone.com, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
        nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/8164: internal error: segmentation fault
Date: Tue, 5 Nov 2002 19:05:27 +0100

 Hi,
 
 the problem can be reduced to the following code snippet (which looks
 legal to me):
 
 -------------------------------snip here-------------------------
 template <bool> struct A {};
 
 template <bool> struct B
 {
   void foo()
   {
     const int i=0;
     typedef A< i<=1 > C;
     typedef A< i<=2 > C;
   }
 };
 -------------------------------snip here-------------------------
 
 gcc 2.95.x rejects the code with an error message.
 gcc 3.0.x, the 3.2 branch and mainline produce an ICE.
 
 Greetings,
 Volker
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8164
 
 



More information about the Gcc-prs mailing list