* class.c (finish_struct_1): Use OVL_CURRENT in error message.

From-SVN: r19829
This commit is contained in:
Martin v. Löwis 1998-05-17 21:52:15 -04:00 committed by Jason Merrill
parent 7e71719699
commit 95480b77a2
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Mon May 18 01:43:01 1998 Martin v. Loewis <loewis@informatik.hu-berlin.de>
* class.c (finish_struct_1): Use OVL_CURRENT in error message.
Mon May 18 01:24:08 1998 Jeffrey A Law (law@cygnus.com)
* Makefile.in (program_transform_name, objdir): Define.

View File

@ -3710,7 +3710,7 @@ finish_struct_1 (t, warn_anon)
{
cp_error ("cannot adjust access to `%#D' in `%#T'", fdecl, t);
cp_error_at (" because of local method `%#D' with same name",
TREE_VEC_ELT (method_vec, i));
OVL_CURRENT (TREE_VEC_ELT (method_vec, i)));
fdecl = NULL_TREE;
break;
}
@ -3827,7 +3827,7 @@ finish_struct_1 (t, warn_anon)
{
cp_error_at ("data member `%#D' conflicts with", x);
cp_error_at ("function member `%#D'",
TREE_VEC_ELT (method_vec, i));
OVL_CURRENT (TREE_VEC_ELT (method_vec, i)));
break;
}
}