diff options
author | Marek Polacek <polacek@redhat.com> | 2020-04-13 19:06:39 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2020-04-13 23:12:31 -0400 |
commit | 7eee265e6bd58bf48da70fef97f2ac7179a9f41c (patch) | |
tree | 8ebe35cd57de1d1b3b53a466bd5d453ddce37bff /gcc/fortran/interface.c | |
parent | e020d2bbe80dd07cbd147ff4eaf5896a60c13575 (diff) | |
download | gcc-7eee265e6bd58bf48da70fef97f2ac7179a9f41c.zip gcc-7eee265e6bd58bf48da70fef97f2ac7179a9f41c.tar.gz gcc-7eee265e6bd58bf48da70fef97f2ac7179a9f41c.tar.bz2 |
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.
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions