[Ada] Improve error message for ghost in predicate

Pierre-Marie de Rodat derodat@adacore.com
Wed Apr 28 09:41:39 GMT 2021


It may be surprising to users that a ghost entity is not allowed to
appear in a predicate, which is a kind of assertion. Explain this in a
continuation message, as well as the possible fixes.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* ghost.adb (Check_Ghost_Context): Add continuation message when
	in predicate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 2492 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210428/8e26bc19/attachment.bin>


More information about the Gcc-patches mailing list