http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56669
Bug #: 56669 Summary: Short code causes segfault with large -ftemplate-depth Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: antoine...@gmail.com Created attachment 29701 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29701 Code causing segault with large -ftemplate-depth Attached code compiled with g++ -Wall -std=c++11 -c -ftemplate-depth=65536 causes gcc (4.7.2 & 4.8.0) to segfault. The attached code is obviously a little demanding on the compiler and segfault only occurs with large -ftemplate-depth, but still a segfault is not nice and might be triggered by more mundane code?