http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52859
Bug #: 52859 Summary: ICE ("Error reporting routines re-entered") on highly recursive template code Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: jewil...@osl.iu.edu Created attachment 27083 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27083 Semi-trimmed test program I am not sure whether this program is valid C++11 or not, but it causes the error: ‘ 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. (backquote in original error message; turns into a normal single quote in the C locale). If line 180 (marked with asterisks) is commented out, the compiler goes into an infinite loop of template instantiations, stopped by the depth limit; other seemingly meaningless changes cause the same result. Because of the use of std::tuple, I was not able to trim the code to something tiny; note that I simplified the parts of the code that came from the standard library as well.