[Bug c++/28863] New: ICE on template class with visibility specification

bernie at develer dot com gcc-bugzilla@gcc.gnu.org
Sun Aug 27 01:56:00 GMT 2006


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



More information about the Gcc-bugs mailing list