Create a ghost region for pragma annotate so that we are able to analyze
the entity references correctly inside the pragma.
gcc/ada/ChangeLog:
* sem_prag.adb: Create a ghost region for pragma annotate before
analyzing its arguments.
Expr : Node_Id;
Nam_Arg : Node_Id;
+ Saved_Ghost_Config : constant Ghost_Config_Type := Ghost_Config;
+ -- Save the Ghost-related attributes to restore on exit
+
--------------------------
-- Inferred_String_Type --
--------------------------
end if;
end if;
+ -- Set the ghost mode before analyzing all of the arguments
+
+ Set_Ghost_Mode (N);
+
-- Continue the processing with last argument removed for now
Check_Arg_Is_Identifier (Arg1);
Next (Arg);
end loop;
end if;
+
+ Restore_Ghost_Region (Saved_Ghost_Config);
end Annotate;
-------------------------------------------------