aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.cc
diff options
context:
space:
mode:
authorGary Dismukes <dismukes@adacore.com>2022-03-28 19:15:30 -0400
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-17 08:25:49 +0000
commitde0665fc7f195e12ede10abb6a98b10011e70807 (patch)
tree98b6bdc7469b24b737434702501acc1e39517f28 /gcc/fortran/trans-openmp.cc
parenta51b6016c96e221fbbfcdf75baa87fcdbc0a2904 (diff)
downloadgcc-de0665fc7f195e12ede10abb6a98b10011e70807.zip
gcc-de0665fc7f195e12ede10abb6a98b10011e70807.tar.gz
gcc-de0665fc7f195e12ede10abb6a98b10011e70807.tar.bz2
[Ada] Subprogram renaming fails to hide homograph
The compiler failed to detect an error where the first prefix of an expanded name given as the renamed subprogram in a subprogram renaming declaration denotes a unit with the same name as the name given for the subprogram renaming. Such a unit must be hidden by the renaming itself. An error check is added to catch this case. gcc/ada/ * sem_ch8.adb (Analyze_Subprogram_Renaming): Add error check for the case of a renamed subprogram given by an expanded name whose outermost prefix names a unit that is hidden by the name of the renaming. (Ult_Expanded_Prefix): New local expression function to return the ultimate prefix of an expanded name.
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions