This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52859] New: ICE ("Error reporting routines re-entered") on highly recursive template code


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: unassigned@gcc.gnu.org
        ReportedBy: jewillco@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]