This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24247] New: recursive default arguments cause compiler out-of-memory
- From: "jens dot maurer at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2005 22:04:23 -0000
- Subject: [Bug c++/24247] New: recursive default arguments cause compiler out-of-memory
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I killed gcc after it used >100 MB of RAM for this example:
template<typename T>
int foo (T t, int = foo(T()));
int main()
{
foo(0);
}
--
Summary: recursive default arguments cause compiler out-of-memory
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jens dot maurer at gmx dot net
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24247