http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54744
Bug #: 54744 Summary: internal compiler error: Segmentation fault, by dependent base, member typedef and ctor-initializer Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: ai.az...@gmail.com Created attachment 28298 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28298 Output of -v option and preprocessed file The following valid code causes segfault with GCC 4.8.0 20120916 and GCC 4.7.3 20120922. /////////////////////////////////////////////////////////// template <typename T> struct base { typedef base base_type; }; template <typename T> struct derived : base<T> { typedef typename derived::base_type::base_type base_type; derived() : base_type() {} }; /////////////////////////////////////////////////////////// Note that the above code compiles successfully with GCC 4.6.4 20120921.