This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/19397] New: [3.4 regression] ICE with invalid typedef


The following invalid code causes an ICE with gcc 3.4.x
(3.3.x and mainline are not affected):

================================
template<typename> struct A
{
    typedef int ::template;
};
================================

bug.cc:3: error: expected id-expression before "template"
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

-- 
           Summary: [3.4 regression] ICE with invalid typedef
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]