class.c (check_for_override): Use DECL_SOURCE_LOCATION and "%qD" in warning_at instea...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 30 Jul 2015 10:24:46 +0000 (10:24 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 30 Jul 2015 10:24:46 +0000 (10:24 +0000)
commit15827d124af737d95f4b728d5980f65c5d9bc9b9
treef6bce95b430b3c3454749147a48f35dde58b4664
parent2e3f48dc43aae10019e0e56ac0e7323d1e14531a
class.c (check_for_override): Use DECL_SOURCE_LOCATION and "%qD" in warning_at instead of "%q+D" in warning.

2015-07-30  Paolo Carlini  <paolo.carlini@oracle.com>

* class.c (check_for_override): Use DECL_SOURCE_LOCATION and "%qD"
in warning_at instead of "%q+D" in warning.
(warn_hidden): Likewise but use location_of.
(finish_struct_anon_r): Likewise use DECL_SOURCE_LOCATION in permerror.
(check_bitfield_decl, check_field_decls): Likewise in warning_at.
(check_field_decls): Likewise for permerror.
(explain_non_literal_class): Likewise for inform.
(check_bases_and_members, layout_class_type): Likewise for warning_at.
(note_name_declared_in_class): Use location_of in permerror.
* name-lookup.c (diagnose_name_conflict): Use location_of in inform.
(pushdecl_maybe_friend_1): Use DECL_SOURCE_LOCATION in pedwarn,
inform, and warning_at.
(check_for_out_of_scope_variable): Likewise for warning_at and
permerror.

From-SVN: r226394
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/name-lookup.c