Red Hat Bugzilla – Bug 828003
Internal compiler error: Error reporting routines re-entered with -fstack-usage
Last modified: 2012-08-13 00:04:22 EDT
Created attachment 588988 [details]
Description of problem:
[03:48:35 pal@underdark ~/tmp/1/bug2]$ LANG=C g++ -std=c++11 -fstack-usage -isystem /home/pal/boost/include/boost-1_49_0 -c -o test1.o test1.cpp
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.7.0/../../../../include/c++/4.7.0/ext/alloc_traits.h:35:0,
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccTTT4Ny.out file, please attach this to your bugreport.
Version-Release number of selected component (if applicable):
-fstack-usage is option designed for Ada, I don't think it is generally useful for other languages and very likely hasn't been tested at all with them.
That said, the ICE is because output_stack_usage calls lang_decl.decl_printable_name (current_function_decl, 2) quite late in the compilation process, and unqualified_lookup_error is reported during it recursively. No idea whether that might be affected by free_lang_data or not.
Tracking this upstream as PR53574.
I can confirm I get this on gcc-4.7.0-5.fc17.x86_64 and gcc-4.7.1-5.fc18.x86_64
Preprocessed source attached.
Created attachment 603846 [details]