This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ locks up on templated code
- From: Jeff Lee <jeff at cdnorthamerica dot com>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Tue, 30 Apr 2002 16:12:00 -0400
- Subject: g++ locks up on templated code
- Organization: Computational Dynamics North America
Hi,
I recently downloaded the cvs version of gcc and tried to compile our
code which uses expression templates(PETE) quite extensively. I am
experiencing a problem which previously occurred in 2.95.2 where g++
starts using massive amounts of memory and seemingly goes into an
infinite recursion - in a file which is heavily templated using
optimization flags O2 or higher (compiles fine with no optimization).
The problem went away in 3.0.1 and is now back in cvs. Any ideas? How
can I tell where g++ is hanging?
Thanks,
Jeff
--
Jeff Lee
Software Engineer jeff@cdnorthamerica.com
CD North America
21 Lafayette Street, Suite 230
Lebanon, NH 03766
Tel: (603) 643-9993 ext. 109
Fax: (603) 643-9994