This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Error messages bug
- To: egcs at cygnus dot com
- Subject: Error messages bug
- From: "Martin v. Loewis" <loewis at informatik dot hu-berlin dot de>
- Date: Tue, 12 May 1998 21:33:49 +0200
There is a bug in the error messages produced for
g++.other/using[12].c, an OVERLOAD node is passed as parameter to
`%D'.
Martin
Tue May 12 19:20:55 1998 Martin v. Loewis <loewis@informatik.hu-berlin.de>
* class.c (finish_struct_1): Use OVL_CURRENT in error message.
Index: class.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/class.c,v
retrieving revision 1.47
diff -c -p -r1.47 class.c
*** class.c 1998/05/11 07:25:20 1.47
--- class.c 1998/05/12 19:29:42
*************** finish_struct_1 (t, warn_anon)
*** 3710,3716 ****
{
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));
fdecl = NULL_TREE;
break;
}
--- 3710,3716 ----
{
cp_error ("cannot adjust access to `%#D' in `%#T'", fdecl, t);
cp_error_at (" because of local method `%#D' with same name",
! OVL_CURRENT (TREE_VEC_ELT (method_vec, i)));
fdecl = NULL_TREE;
break;
}
*************** finish_struct_1 (t, warn_anon)
*** 3827,3833 ****
{
cp_error_at ("data member `%#D' conflicts with", x);
cp_error_at ("function member `%#D'",
! TREE_VEC_ELT (method_vec, i));
break;
}
}
--- 3827,3833 ----
{
cp_error_at ("data member `%#D' conflicts with", x);
cp_error_at ("function member `%#D'",
! OVL_CURRENT (TREE_VEC_ELT (method_vec, i)));
break;
}
}