diff options
author | Javier Miranda <miranda@adacore.com> | 2024-10-29 08:31:28 +0000 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-11-26 10:49:36 +0100 |
commit | 38b977cc077d055be9730b6476043d666864c832 (patch) | |
tree | 114c49b9df00a2ff9f81501ebdcce49afc583dad /gcc/fortran/trans-expr.cc | |
parent | fed7c5cd733b593c9aee5898f36726efd3fa811c (diff) | |
download | gcc-38b977cc077d055be9730b6476043d666864c832.zip gcc-38b977cc077d055be9730b6476043d666864c832.tar.gz gcc-38b977cc077d055be9730b6476043d666864c832.tar.bz2 |
ada: Refactor code of Check_Ambiguous_Call and Valid_Conversion
Code cleanup; factorizing code.
gcc/ada/ChangeLog:
* sem_ch2.adb (Check_Ambiguous_Call): Replace code factorized
code by call to the new subprogram Is_Ambiguous_Operand.
* sem_res.ads (Is_Ambiguous_Operand): New subprogram that
factorizes previous code in Check_Ambiguous_Call and
Valid_Conversion.
* sem_res.adb (Is_Ambiguous_Operand): New subprogram.
(Valid_Tagged_Conversion): Replace factorized code by call to
the new subprogram Is_Ambiguous_Operand.
(Report_Error_N): New subprogram.
(Report_Error_NE): New subprogram.
(Report_Interpretation): New subprogram.
(Conversion_Error_N): Removed; replaced by Report_Error_N.
(Conversion_Error_NE): Removed; replaced by Report_Error_NE.
(Valid_Conversion): Update Opnd_Type after the call to
Is_Ambiguous_Operand in the overloaded case.
Diffstat (limited to 'gcc/fortran/trans-expr.cc')
0 files changed, 0 insertions, 0 deletions