This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5189: g++ -c bug.cpp crashed on simple stupid file
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: hkluender at otg dot com, gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Fri, 4 Jan 2002 17:57:48 +0100
- Subject: Re: c++/5189: g++ -c bug.cpp crashed on simple stupid file
Hi,
the bug can be reproduced with an even simpler example:
struct A
{
A(A&);
template <class T> A(T);
};
A a = 0;
The compiler (g++ -c) seems to run into an endless loop which is killed
by the system when all virtual memory is exhausted. This affects gcc
3.0.x and the main trunk (gcc 3.1 as of 20011231) under i686-pc-linux-gnu.
However, gcc 2.95.2 does not have this problem.
See also http://gcc.gnu.org/ml/gcc-bugs/2002-01/msg00202.html
which is probably related.
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5189