-- accessibility of result), and constant folding can occur and
-- lead to spurious errors.
- and then Operating_Mode /= Check_Semantics
+ and then not Check_Semantics_Only_Mode
then
-- Generate a dynamic check based on the extra accessibility of
-- the result or the scope of the current function.
and then Entity (Check_Cond) = Standard_True
then
Error_Msg_N
- ("access discriminant in return object would be a dangling"
- & " reference", Return_Stmt);
+ ("access discriminant in return object could be a dangling"
+ & " reference??", Return_Stmt);
end if;
end if;
-- GNATMAKE
-- Set to True to check readonly files during the make process
+ Check_Semantics_Only_Mode : Boolean := False;
+ -- GNATMAKE
+ -- Set to True when -gnatc is present to only perform semantic checking.
+
Check_Source_Files : Boolean := True;
-- GNATBIND, GNATMAKE
-- Set to True to enable consistency checking for any source files that