https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63430
Bug ID: 63430 Summary: [5 Regression] internal compiler error: Segmentation fault Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ai.azuma at gmail dot com Created attachment 33635 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33635&action=edit Output of -v option and preprocessed file The following valid code causes segfault with GCC 5.0.0 20140928. //============================================== extern int f(int *); static int i __attribute__ ((__weakref__("f"))); template<typename T> class X { static __thread T* value_; }; //============================================== Note that the above code compiles successfully with 4.9.2 20140924 and 4.8.4 20140925.