This is the mail archive of the
gcc-prs@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: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 4 Jan 2002 16:46:01 -0000
- Subject: Re: c++/5189: g++ -c bug.cpp crashed on simple stupid file
- Reply-to: Reichelt <reichelt at igpm dot rwth-aachen dot de>
The following reply was made to PR c++/5189; it has been noted by GNATS.
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: hkluender@otg.com, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/5189: g++ -c bug.cpp crashed on simple stupid file
Date: Fri, 4 Jan 2002 17:57:48 +0100
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