[Bug c++/13243] New: Segfault on illegal template construct

drow at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Nov 30 18:13:00 GMT 2003


Compile this:
template <int T> class foo { public: foo() { } class Z { };};
template <int I[2]> void dep7(foo<I[0]> *) { }

We segfault here:
#3  0x0811fa10 in cp_parser_fold_non_dependent_expr (expr=0x4000e348)

-- 
           Summary: Segfault on illegal template construct
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: drow at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu


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



More information about the Gcc-bugs mailing list