diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-20 16:58:24 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-20 16:58:24 +0000 |
commit | e384b4be041ba9def5cbee75dc93ae99628313b1 (patch) | |
tree | 54b93bda0577022b2b7a177b7020d7058517da48 | |
parent | fe1b116757f7288676d2d3263e6b70624dc671ca (diff) | |
download | gcc-e384b4be041ba9def5cbee75dc93ae99628313b1.tar.gz |
PR c++/5118
* class.c (get_vfield_name): Use the constructor_name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51075 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/class.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7dd27a413ff..38ce231d87f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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-20 Neil Booth <neil@daikokuya.demon.co.uk> * cp-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine. diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 1c0c526ecb8..cd23a0e3175 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -6332,7 +6332,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); } |