aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-04-13 19:06:39 -0400
committerMarek Polacek <polacek@redhat.com>2020-04-13 23:12:31 -0400
commit7eee265e6bd58bf48da70fef97f2ac7179a9f41c (patch)
tree8ebe35cd57de1d1b3b53a466bd5d453ddce37bff /gcc/fortran/interface.c
parente020d2bbe80dd07cbd147ff4eaf5896a60c13575 (diff)
downloadgcc-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