http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53574
Bug #: 53574 Summary: ICE with -fstack-usage Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: ja...@gcc.gnu.org CC: ebotca...@gcc.gnu.org, ja...@gcc.gnu.org The following testcase ICEs with -std=c++11 -fstack-usage, works fine without the latter. Internal compiler error: Error reporting routines re-entered. Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. The problem is when -fstack-usage uses lang_hooks.decl_printable_name (current_function_decl, 2) late, not sure if it is because free_lang_data frees something that the C++ FE needs for it and toplevel.c shouldn't be calling that langhook so late, or if it is a C++ FE bug.