diff options
author | Gary Dismukes <dismukes@adacore.com> | 2021-04-12 17:20:33 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-06-29 14:23:47 +0000 |
commit | 4c07e6d67921bb0793890550094d464153e479eb (patch) | |
tree | 586196fcbe6843fecb25faed38f8ef48d7d17173 /gcc/go | |
parent | 430d508058bfe1c88c582a2256ff4dc3854c369d (diff) | |
download | gcc-4c07e6d67921bb0793890550094d464153e479eb.zip gcc-4c07e6d67921bb0793890550094d464153e479eb.tar.gz gcc-4c07e6d67921bb0793890550094d464153e479eb.tar.bz2 |
[Ada] Overriding errors on renamings and instances overriding predefined operators
gcc/ada/
* sem_ch6.ads (Can_Override_Operator): Function declaration
moved from package body to package spec.
* sem_ch6.adb (Check_Overriding_Indicator): Now use test of
whether the subprogram's Chars is an operator name, to handle
cases of function instances whose entity is
N_Defining_Identifier rather than N_Defining_Operator_Symbol.
(Can_Override_Operator): Function declaration moved to package
spec. Now use test of whether the subprogram's Chars is an
operator name, to handle cases of function instances whose
entity is N_Defining_Identifier rather than
N_Defining_Operator_Symbol.
* sem_ch8.adb (Analyze_Renamed_Subprogram): Check for
possibility of an overridden predefined operator, and suppress
the "not overriding" message in that case.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions