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]

c++/123: Re: g++-2.95.2: internal compiler error (with testcase)



>Number:         123
>Category:       c++
>Synopsis:       g++-2.95.2: internal compiler error (with testcase)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          analyzed
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 19 01:46:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Bernd Nottelmann <nottelm@uni-muenster.de>
>Release:        2.95.2
>Organization:
Universität Münster
>Environment:
>Description:
 Original-Message-ID: <38D3E4FE.CE4AF2BE@uni-muenster.de>
 Date: Sat, 18 Mar 2000 21:20:14 +0100
 

 Hi

 the following code causes an internal compiler error:

 // ========== A.C ==========
 void foo(void (*f)());

 struct A {
   template <int s>
   static void g() {}

   template <int s>
   inline static void f() {
     foo(g<s>);
   }

   static void f_plus () { f<0>(); }
 };
 // ======= snip here =======

 > g++ -c  A.C
 A.C: In function `static void A::f<0>()':
 A.C:12:   instantiated from here
 A.C:9: Internal compiler error.
 A.C:9: Please submit a full bug report.
 A.C:9: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.

 My version is
 g++ -v
 Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
 gcc version 2.95.2 19991024 (release)

 (under glibc-2.1.3, but this plays no role)

 Bernd


>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

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