decl.c (poplevel): Use Use DECL_SOURCE_LOCATION and "%qD" in warning_at instead of...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 26 Jul 2015 09:17:03 +0000 (09:17 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 26 Jul 2015 09:17:03 +0000 (09:17 +0000)
commitaf7186706c6cd7d5014f0637308c80d8f2cd2545
treeb7ab001b0c5bd31c765363f46e1f620d51806fbd
parent6e07a52e7795822f4953aa6b5016ad17e5df34b7
decl.c (poplevel): Use Use DECL_SOURCE_LOCATION and "%qD" in warning_at instead of "%q+D" in warning.

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

* decl.c (poplevel): Use Use DECL_SOURCE_LOCATION and "%qD"
in warning_at instead of "%q+D" in warning.
(warn_extern_redeclared_static): Likewise for inform.
(check_redeclaration_no_default_args): Likewise for permerror.
(duplicate_decls): Likewise.
(check_previous_goto_1): Likewise for inform.
(check_goto, start_decl, check_for_uninitialized_const_var,
start_preparsed_function, finish_function§): Likewise.
* decl2.c (build_anon_union_vars, c_parse_final_cleanups): Likewise.
* init.c (sort_mem_initializers): Likewise.
* typeck.c (convert_for_initialization): Likewise for inform.
(maybe_warn_about_returning_address_of_local): Likewise.
* typeck2.c (abstract_virtuals_error_sfinae): Likewise for inform.
(cxx_incomplete_type_diagnostic): Likewise for emit_diagnostic.

From-SVN: r226234
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/typeck.c
gcc/cp/typeck2.c