[Bug c++/9436] [ABI] passing a class template followed by a template value of this class

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



------- Comment #8 from reichelt at gcc dot gnu dot org  2009-03-28 21:20 -------
The mangling problem has been 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".


The last problem mentioned in comment#7 is not a bug, see also PR29733.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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



More information about the Gcc-bugs mailing list