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