public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4500
@ 2001-10-09 2:56 Reichelt
0 siblings, 0 replies; only message in thread
From: Reichelt @ 2001-10-09 2:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4500; it has been noted by GNATS.
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: Ulrich.Hagen@Siemens.com, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Cc:
Subject: Re: c++/4500
Date: Tue, 9 Oct 2001 11:59:02 +0200
Hi,
the problem seems to be the interaction between optimization and dwarf2
output. I distilled the following testcase from the PR:
int e();
struct A
{
A (int);
~A ();
};
struct B
{
void f (int);
};
template <class T> struct C
{
void g () { A a(0); h(); }
void h () { if (!(e() && e()>0)) { B b; b.f(e()); } }
};
template struct C<void>;
It crashes gcc 3.0.2 20010903 (prerelease) on mips-sgi-irix6.5
using "g++ -O2 -g -c <filename>" and gcc 3.0 on i686-pc-linux-gnu
using "g++ -O2 -gdwarf-2 -c <filename>". I cannot test the original
system "alphaev67-unknown-linux-gnu" however.
Remark: With i686-pc-linux-gnu you can change the conditional
expression in the if-statement to "e()" and still get the crash.
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4500&database=gcc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-10-09 2:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-09 2:56 c++/4500 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).