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++/53846] New: [c++11] memory exhaustion on simple recursive function template that uses decltype


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53846

             Bug #: 53846
           Summary: [c++11] memory exhaustion on simple recursive function
                    template that uses decltype
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: eric.niebler@gmail.com


Created attachment 27738
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27738
g++ -std=gnu++11 -c test_eric2.cpp

The attached code, compiled with -std=gnu++11, causes the compiler to exhaust
the heap. With fewer arguments to the back() function it succeeds, but quickly
runs into compile time troubles.


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