The following testcase: template<class T> class __attribute__((visibility("default"))) Foo { Foo<T> bar(); };
template<class T> Foo<T> Foo<T>::bar() { } Produces: foo.cpp: In member function ‘Foo<T> Foo<T>::bar()’: foo.cpp:6: internal compiler error: Segmentation fault -- Summary: ICE on template class with visibility specification Product: gcc Version: 4.1.1 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bernie at develer dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28863