This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34850] New: Recursive BLOCK tree
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2008 14:44:01 -0000
- Subject: [Bug c++/34850] New: Recursive BLOCK tree
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compilation of the attached testcase hangs in
0x000000000056aedc in cp_print_error_function (context=0x15c5a60,
diagnostic=0x7fff955f6c30)
at /space/rguenther/src/svn/trunk/gcc/cp/error.c:2426
2426 while (TREE_CODE (ao) == BLOCK &&
BLOCK_ABSTRACT_ORIGIN (ao))
2427 ao = BLOCK_ABSTRACT_ORIGIN (ao);
because BLOCK_ABSTRACT_ORIGIN (ao) == ao.
If you build with -O2 -g. Building without -g fixes the problem
(possibly the BLOCK is thrown away as unused).
--
Summary: Recursive BLOCK tree
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: compile-time-hog
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34850