[Ada] Add adequate guard before calling First_Rep_Item

Pierre-Marie de Rodat derodat@adacore.com
Wed Sep 22 15:15:57 GMT 2021


New contracts on Ada.Strings.Bounded revealed an unprotected call to
First_Rep_Item on a possibly empty node.

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

gcc/ada/

	* sem_ch13.adb (Build_Predicate_Functions): Add guard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 532 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210922/fb0918b8/attachment.bin>


More information about the Gcc-patches mailing list