This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/123: Re: g++-2.95.2: internal compiler error (with testcase)
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/123: Re: g++-2.95.2: internal compiler error (with testcase)
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sun, 19 Mar 2000 10:35:54 +0100
- References: <38D3E4FE.CE4AF2BE@uni-muenster.de>
- Resent-Cc: gcc-prs at gcc dot gnu dot org, nottelm at uni-muenster dot de
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
>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: