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

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

From-SVN: r51074
This commit is contained in:
Jason Merrill 2002-03-20 11:52:07 -05:00 committed by Jason Merrill
parent d2ba9cdaf9
commit 1ff31a726e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-03-19 Jason Merrill <jason@redhat.com>
PR c++/5118
* class.c (get_vfield_name): Use the constructor_name.
2002-03-18 Eric Botcazou <ebotcazou@multimania.com>
PR c++/3882

View File

@ -6303,7 +6303,8 @@ get_vfield_name (type)
type = BINFO_TYPE (binfo);
buf = (char *) alloca (sizeof (VFIELD_NAME_FORMAT)
+ 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);
}