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++/28293] New: ICE on invalid typedef


The following invalid code snippet triggers an ICE since at least GCC 2.95.3:

======================
template<int> void foo();

struct A
{
  typedef void foo<0>();
};
======================

bug.cc:5: internal compiler error: tree check: expected identifier_node, have
template_id_expr in grokfield, at cp/decl2.c:805
Please submit a full bug report, [etc.]


-- 
           Summary: ICE on invalid typedef
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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