diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-18 11:17:52 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-18 11:17:52 +0000 |
commit | cbe5f3b371c07c282d48d135cc5041092e1de28d (patch) | |
tree | 6e8f62722b8c096a18c7f96bbbf77c9c7fc8a01c /gcc/cp/class.c | |
parent | 79a141784a7f10d72c756aa309eb6aa9a7bd92c5 (diff) | |
download | gcc-cbe5f3b371c07c282d48d135cc5041092e1de28d.zip gcc-cbe5f3b371c07c282d48d135cc5041092e1de28d.tar.gz gcc-cbe5f3b371c07c282d48d135cc5041092e1de28d.tar.bz2 |
diagnostics.c (permerror_at): Rename as permerror.
2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* diagnostics.c (permerror_at): Rename as permerror.
(permerror): Delete.
* toplev.h: Likewise.
cp/
* typeck.c: Update all callers.
* init.c: Likewise.
* class.c: Likewise.
* decl.c: Likewise.
* call.c: Likewise.
* except.c: Likewise.
* cvt.c: Likewise.
* typeck2.c: Likewise.
* pt.c: Likewise.
* semantics.c: Likewise.
* name-lookup.c: Likewise.
* lex.c: Likewise.
* decl2.c: Likewise.
* parser.c: Likewise.
From-SVN: r139193
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index b08f9c8..d0033c7 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -2497,10 +2497,10 @@ finish_struct_anon (tree t) if (TREE_CODE (elt) != FIELD_DECL) { if (is_union) - permerror ("%q+#D invalid; an anonymous union can " + permerror (input_location, "%q+#D invalid; an anonymous union can " "only have non-static data members", elt); else - permerror ("%q+#D invalid; an anonymous struct can " + permerror (input_location, "%q+#D invalid; an anonymous struct can " "only have non-static data members", elt); continue; } @@ -2508,16 +2508,16 @@ finish_struct_anon (tree t) if (TREE_PRIVATE (elt)) { if (is_union) - permerror ("private member %q+#D in anonymous union", elt); + permerror (input_location, "private member %q+#D in anonymous union", elt); else - permerror ("private member %q+#D in anonymous struct", elt); + permerror (input_location, "private member %q+#D in anonymous struct", elt); } else if (TREE_PROTECTED (elt)) { if (is_union) - permerror ("protected member %q+#D in anonymous union", elt); + permerror (input_location, "protected member %q+#D in anonymous union", elt); else - permerror ("protected member %q+#D in anonymous struct", elt); + permerror (input_location, "protected member %q+#D in anonymous struct", elt); } TREE_PRIVATE (elt) = TREE_PRIVATE (field); @@ -3048,7 +3048,7 @@ check_field_decls (tree t, tree *access_decls, user-declared constructor. */ if (constructor_name_p (DECL_NAME (x), t) && TYPE_HAS_USER_CONSTRUCTOR (t)) - permerror ("field %q+#D with same name as class", x); + permerror (input_location, "field %q+#D with same name as class", x); /* We set DECL_C_BIT_FIELD in grokbitfield. If the type and width are valid, we'll also set DECL_BIT_FIELD. */ @@ -6171,7 +6171,7 @@ resolve_address_of_overloaded_function (tree target_type, if (!(flags & tf_error)) return error_mark_node; - permerror ("assuming pointer to member %qD", fn); + permerror (input_location, "assuming pointer to member %qD", fn); if (!explained) { inform ("(a pointer to member can only be formed with %<&%E%>)", fn); @@ -6534,8 +6534,8 @@ note_name_declared_in_class (tree name, tree decl) A name N used in a class S shall refer to the same declaration in its context and when re-evaluated in the completed scope of S. */ - permerror ("declaration of %q#D", decl); - permerror ("changes meaning of %qD from %q+#D", + permerror (input_location, "declaration of %q#D", decl); + permerror (input_location, "changes meaning of %qD from %q+#D", DECL_NAME (OVL_CURRENT (decl)), (tree) n->value); } } |