[Bug c++/35329] [4.2/4.3 regression] ICE with invalid template class after #pragma interface

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Mar 28 21:29:00 GMT 2009



------- Comment #2 from reichelt at gcc dot gnu dot org  2009-03-28 21:28 -------
Fixed on the trunk by Jason's patch

2009-03-17  Jason Merrill  <jason@redhat.com>

        * decl.c (grokfndecl): Set DECL_CONTEXT on parms.
        (duplicate_decls): Adjust DECL_CONTEXT of newdecl's parms.
        * pt.c (check_explicit_specialization): Likewise.
        (tsubst_copy) [PARM_DECL]: Return a dummy parm if we don't have a
        local specialization.
        * tree.c (cp_tree_equal) [PARM_DECL]: Check type and index, not name.
        * decl2.c (parm_index): New fn.
        * semantics.c (finish_decltype_type): Don't use describable_type.
        * mangle.c (write_expression): Likewise.  Mangle ALIGNOF_EXPR.
        Give a sorry for unsupported codes rather than crash.  Mangle
        conversions with other than 1 operand.  New mangling for PARM_DECL.
        * operators.def (ALIGNOF_EXPR): Mangle as "az".


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2/4.3/4.4 regression] ICE|[4.2/4.3 regression] ICE
                   |with invalid template class |with invalid template class
                   |after #pragma interface     |after #pragma interface


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



More information about the Gcc-bugs mailing list