Commit ea122333 by Jason Merrill Committed by Jason Merrill

re PR c++/5118 (c4x-g++ Fails on Templates)

        PR c++/5118
        * class.c (get_vfield_name): Use the constructor_name.

From-SVN: r51075
parent ed7d44bc
2002-03-19 Jason Merrill <jason@redhat.com>
PR c++/5118
* class.c (get_vfield_name): Use the constructor_name.
2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk> 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
* cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine. * cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
......
...@@ -6332,7 +6332,8 @@ get_vfield_name (type) ...@@ -6332,7 +6332,8 @@ get_vfield_name (type)
type = BINFO_TYPE (binfo); type = BINFO_TYPE (binfo);
buf = (char *) alloca (sizeof (VFIELD_NAME_FORMAT) buf = (char *) alloca (sizeof (VFIELD_NAME_FORMAT)
+ TYPE_NAME_LENGTH (type) + 2); + TYPE_NAME_LENGTH (type) + 2);
sprintf (buf, VFIELD_NAME_FORMAT, TYPE_NAME_STRING (type)); sprintf (buf, VFIELD_NAME_FORMAT,
IDENTIFIER_POINTER (constructor_name (type)));
return get_identifier (buf); return get_identifier (buf);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment