[Bug c++/11907] New: ICE on illegal code: using a class template instead of a class

o dot kullmann at swansea dot ac dot uk gcc-bugzilla@gcc.gnu.org
Wed Aug 13 18:26:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11907

           Summary: ICE on illegal code: using a class template instead of a
                    class
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: o dot kullmann at swansea dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org

namespace N { template <class T> struct X {}; } 
template <class T> struct Y { typedef typename N::X tag; }; 
int main() { Y<int> y; } 
 
compiled without options yields: 
internal compiler error: Segmentation fault 
 
Tried: Versions 3.2.1, 3.3, 3.3.1 --- all identical.



More information about the Gcc-bugs mailing list