diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2017-01-19 12:46:14 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2017-01-19 12:46:14 +0100 |
commit | c63a2ad68bc0704fc2926badc46f3ccd952dbbb9 (patch) | |
tree | 9b5192623bf3246439db9c7ea3d6c832eca97899 /gcc/ada/sem_ch4.adb | |
parent | 40bf00b1f85afad60951ed3c07b5ffd6414241cf (diff) | |
download | gcc-c63a2ad68bc0704fc2926badc46f3ccd952dbbb9.zip gcc-c63a2ad68bc0704fc2926badc46f3ccd952dbbb9.tar.gz gcc-c63a2ad68bc0704fc2926badc46f3ccd952dbbb9.tar.bz2 |
[multiple changes]
2017-01-19 Hristian Kirtchev <kirtchev@adacore.com>
* lib-xref-spark_specific.adb, sem_util.adb, sem_util.ads,
sem_ch4.adb, sem_ch8.adb, lib-xref.ads: Minor reformatting.
2017-01-19 Bob Duff <duff@adacore.com>
* bcheck.adb (Check_Consistent_Dynamic_Elaboration_Checking):
Increment Warnings_Detected. It was decrementing, which is
wrong since we just issued a warning message.
* binderr.ads (Errors_Detected, Warnings_Detected): Declare
these variables to be of subtype Nat instead of Int, because
they should never be negative.
2017-01-19 Javier Miranda <miranda@adacore.com>
* contracts.adb (Build_Postconditions_Procedure): Replace
Generate_C_Code by Modify_Tree_For_C.
* exp_aggr.adb (Build_Record_Aggr_Code, Expand_Array_Aggregate):
Replace Generate_C_Code by Modify_Tree_For_C.
* exp_attr.adb (Float_Valid, Is_GCC_Target): Replace Generate_C_Code by
Modify_Tree_For_C.
* exp_ch11.adb (Expand_N_Exception_Declaration): Replace
Generate_C_Code by Modify_Tree_For_C.
* exp_ch4.adb (Expand_Allocator_Expression): Replace
Generate_C_Code by Modify_Tree_For_C.
* exp_dbug.adb (Qualify_Entity_Name): Replace Generate_C_Code
by Modify_Tree_For_C.
* exp_util.adb (Remove_Side_Effects, Side_Effect_Free): Replace
Generate_C_Code by Modify_Tree_For_C.
* sem_res.adb (Resolve_Type_Conversion): Replace Generate_C_Code
by Modify_Tree_For_C.
* sinfo.ads (Modify_Tree_For_C): Adding documentation.
From-SVN: r244619
Diffstat (limited to 'gcc/ada/sem_ch4.adb')
-rw-r--r-- | gcc/ada/sem_ch4.adb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/ada/sem_ch4.adb b/gcc/ada/sem_ch4.adb index 8fd886f..db41afb 100644 --- a/gcc/ada/sem_ch4.adb +++ b/gcc/ada/sem_ch4.adb @@ -5881,12 +5881,12 @@ package body Sem_Ch4 is end loop; end if; - -- Before listing the possible candidates, check whether this - -- a prefix of a selected component that has been rewritten as - -- a parameterless function call because there is a callable - -- candidate interpretation. If there is a hidden package in - -- the list of homonyms of the function name (bad programming - -- style in any case) suggest that this is the intended entity. + -- Before listing the possible candidates, check whether this is + -- a prefix of a selected component that has been rewritten as a + -- parameterless function call because there is a callable candidate + -- interpretation. If there is a hidden package in the list of homonyms + -- of the function name (bad programming style in any case) suggest that + -- this is the intended entity. if No (Parameter_Associations (N)) and then Nkind (Parent (N)) = N_Selected_Component @@ -5903,6 +5903,7 @@ package body Sem_Ch4 is Error_Msg_N ("no legal interpretations as function call,!", Nam); Error_Msg_NE ("\package& is not visible", N, Ent); + Rewrite (Parent (N), New_Occurrence_Of (Any_Type, Sloc (N))); return; @@ -5913,8 +5914,8 @@ package body Sem_Ch4 is end; end if; - -- Analyze each candidate call again, with full error reporting - -- for each. + -- Analyze each candidate call again, with full error reporting for + -- each. Error_Msg_N ("no candidate interpretations match the actuals:!", Nam); |