https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94588

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>:

https://gcc.gnu.org/g:7eee265e6bd58bf48da70fef97f2ac7179a9f41c

commit r10-7709-g7eee265e6bd58bf48da70fef97f2ac7179a9f41c
Author: Marek Polacek <pola...@redhat.com>
Date:   Mon Apr 13 19:06:39 2020 -0400

    c++: Improve redeclared parameter name diagnostic [PR94588]

    While reviewing [basic.scope.param] I noticed we don't show the location
    of the previous declaration when giving an error about "A parameter name
    shall not be redeclared in the outermost block of the function definition".

            PR c++/94588
            * name-lookup.c (check_local_shadow): Add an inform call.

            * g++.dg/diagnostic/redeclaration-1.C: Add dg-message.

Reply via email to