]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Set Error_Msg_Warn before use of << insertion
authorYannick Moy <moy@adacore.com>
Thu, 13 Jan 2022 16:35:24 +0000 (17:35 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 9 May 2022 09:27:34 +0000 (09:27 +0000)
commit706940c2c867bc2609338f27eaea056aedc13d63
tree6fbc405aeb062e79050d04cba976f497041b8b71
parentea7967ebdf76969a54a47dda96115c04057c4aba
[Ada] Set Error_Msg_Warn before use of << insertion

Calls to Error_Msg procedures with a message using the < or <<
insertions need to set appropriately Error_Msg_Warn. This was not done
in one call, which would lead to spurious errors when changing the
implementation of a runtime unit. This fixes it so that changes can be
applied.

gcc/ada/

* exp_ch4.adb (Expand_Allocator_Expression): Set Error_Msg_Warn
correctly.
gcc/ada/exp_ch4.adb