[Ada] Crash on ghost assignment check for illegal code
authorBob Duff <duff@adacore.com>
Sun, 8 Nov 2020 21:54:56 +0000 (16:54 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 30 Nov 2020 14:16:16 +0000 (09:16 -0500)
commita442bed36cfbfb739244963f22eaf10320a27ec9
treed9ae488fac05a29ba1a7f9fc4a739c39e1546289
parentf456de4c432c6f44cc0de9ccc19a4ff4eadb8f9c
[Ada] Crash on ghost assignment check for illegal code

gcc/ada/

* errout.adb (Error_Msg_NEL): Do not call Set_Posted if errors
are being ignored.
(Error_Msg): Change Errors_Must_Be_Ignored to use the getter.
* sem_ch8.adb (Find_Direct_Name): Do not skip all the error
checks when ignoring errors, but instead do not add an entry to
the Urefs table if errors are being ignored.
* exp_ch5.adb: Minor comment fix.
gcc/ada/errout.adb
gcc/ada/exp_ch5.adb
gcc/ada/sem_ch8.adb