diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 3b0918a..1a71dc9 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2012-11-17 Gabriel Dos Reis <gdr@integrable-solutions.net> + + * semantics.c (finish_id_expression): Tidy diagnostic message. + 2012-11-16 Dodji Seketeli <dodji@redhat.com> PR c++/54875 diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 7def254..de6461c 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -3041,7 +3041,7 @@ finish_id_expression (tree id_expression, else { error (TREE_CODE (decl) == VAR_DECL - ? G_("use of %<auto%> variable from containing function") + ? G_("use of local variable with automatic storage from containing function") : G_("use of parameter from containing function")); error (" %q+#D declared here", decl); return error_mark_node; |