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++/7115: Internal compiler error on template stuff


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

From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, strieder@informatik.uni-kl.de, gcc-bugs@gcc.gnu.org,
        nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/7115: Internal compiler error on template stuff
Date: Wed, 26 Jun 2002 13:11:50 +0200

 Hi,
 
 the bug (at least one bug - maybe there are others?) can be exposed with
 the following code snippet:
 
 ----------------------------------snip here----------------------------
 template <unsigned int> class A {};
 
 template <typename T> A<sizeof(T*)> foo();
 
 void bar()
 {
    foo<void>();
 }
 ----------------------------------snip here----------------------------
 
 Compiling this with "g++ -c" I get
 
 bug.cpp: In function `void bar()':
 bug.cpp:7: internal error: Segmentation fault
 Please submit a full bug report, [etc.]
 
 This happens with gcc 3.0.x, 3.1, 3.1.1 as of 20020624 and the main
 trunk (tested on i686-pc-linux-gnu and mips-sgi-irix6.5).
 
 It's a regression from 2.95.x and is probably related to PR 7112
 (which is already marked "high priority").
 
 Greetings,
 Volker Reichelt
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7115
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7112
 
 


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