public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4286
@ 2001-09-11 3:36 Reichelt
0 siblings, 0 replies; only message in thread
From: Reichelt @ 2001-09-11 3:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4286; it has been noted by GNATS.
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: rosbacke@nada.kth.se, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Cc:
Subject: Re: c++/4286
Date: Tue, 11 Sep 2001 12:32:13 +0200
Hi,
although the original example is ill-formed (the closing brace
of the body of the function "findClusters" is missing) one can
construct a shorter well-formed example that exhibits the same
behaviour (so it's an ice-on-legal):
struct A
{
template<class T> void f();
};
template<class T> void A::f()
{
struct B
{
void g() {}
static int x;
};
}
It crashes gcc 3.0 and the 20010903 snapshot of 3.0.2 on
an i686-pc-linux-gnu and a mips-sgi-irix6.5 system.
Just use "g++ -c" without any further options.
By the way, the bug is a regression from 2.95.3.
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4286&database=gcc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-09-11 3:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-11 3:36 c++/4286 Reichelt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).