gcc/ada/
* contracts.adb (Process_Preconditions_For): Do not exclude
instances.
* sem_ch4.adb (Analyze_Quantified_Expression): Disable spurious
warning on internally generated variables.
and then Sloc (Body_Id) /= Sloc (Subp_Id)
and then In_Same_Source_Unit (Body_Id, Subp_Id)
and then List_Containing (Body_Decl) /=
- List_Containing (Subp_Decl)
- and then not In_Instance;
+ List_Containing (Subp_Decl);
if Present (Items) then
Prag := Pre_Post_Conditions (Items);
if Warn_On_Suspicious_Contract
and then not Referenced (Loop_Id, Cond)
+ and then not Is_Internal_Name (Chars (Loop_Id))
then
-- Generating C, this check causes spurious warnings on inlined
-- postconditions; we can safely disable it because this check