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++/48075] infinite loop when compiling


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

--- Comment #4 from Patrick Marlier <patrick.marlier at gmail dot com> 2011-12-03 03:53:02 UTC ---
Created attachment 25976
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25976
reduced and without transaction relaxed

I am hesitating to mark it as invalid since limiting the template-depth seems
to show the error. I let C++ guru if they think it is invalid (limit depth to 4
but it is quadratic expansion).

Patrick Marlier.

$ g++ inf.C -O0 -ftemplate-depth=4
inf.C:7:31: error: template instantiation depth exceeds maximum of 4 (use
-ftemplate-depth= to increase the maximum) instantiating âclass
list<list<list<list<list<int>::Building*, allocator<list<int>::Building*>
>::Building*, allocator<list<list<int>::Building*,
allocator<list<int>::Building*> >::Building*> >::Building*,
allocator<list<list<list<int>::Building*, allocator<list<int>::Building*>
>::Building*, allocator<list<list<int>::Building*,
allocator<list<int>::Building*> >::Building*> >::Building*> >::Building*,
allocator<list<list<list<list<int>::Building*, allocator<list<int>::Building*>
>::Building*, allocator<list<list<int>::Building*,
allocator<list<int>::Building*> >::Building*> >::Building*,
allocator<list<list<list<int>::Building*, allocator<list<int>::Building*>
>::Building*, allocator<list<list<int>::Building*,
allocator<list<int>::Building*> >::Building*> >::Building*> >::Building*> >â
inf.C:7:31:   recursively required from âclass list<list<int>::Building*,
allocator<list<int>::Building*> >â
inf.C:7:31:   required from âclass list<int>â
inf.C:12:12:   required from here


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