2015-07-30 Paolo Carlini <paolo.carlini@oracle.com>
commit43d8404975f822fe7502c3e1ad436a5af4dfd3a7
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Jul 2015 10:24:46 +0000 (30 10:24 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Jul 2015 10:24:46 +0000 (30 10:24 +0000)
treef6bce95b430b3c3454749147a48f35dde58b4664
parent330d0658f15f755f87612e051103ced54330c6a9
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226394 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/name-lookup.c