This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/10084: [3.2/3.3 regression] alpha: ICE while building kseg/ddd
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, rmurray at debian dot org, 184753 at bugs dot debian dot org
- Date: 23 Mar 2003 21:29:34 +0100
- Subject: Re: target/10084: [3.2/3.3 regression] alpha: ICE while building kseg/ddd
Hi,
here's a smaller test case:
struct Foo {
Foo();
Foo(const Foo &);
};
inline Foo foo(Foo s1) {
Foo tmp(s1);
return tmp;
}
const Foo bar = foo(Foo());
% g++ -v
Reading specs from /usr/local/stow/gcc-2003.03.11/bin/../lib/gcc-lib/alphaev68-unknown-linux-gnu/3.4/specs
Configured with: ../configure --enable-languages=c++
Thread model: posix
gcc version 3.4 20030310 (experimental)
% g++ -c -g -O bug.cc
bug.cc: In function `void __static_initialization_and_destruction_0(int, int)':
bug.cc:11: internal compiler error: in mem_loc_descriptor, at dwarf2out.c:8508
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
g++ 2.95 has no problems. Removing -g or -O also fixes the problem.
--
Falk