[Ada] Assert failure on invalid Variable_Indexing
Pierre-Marie de Rodat
derodat@adacore.com
Tue Jul 7 09:27:36 GMT 2020
GNAT is getting confused and will either generate an assert failure or a
confusing error message (when assertions are disabled) in case of an
invalid Variable_Indexing.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* sem_ch4.adb (Try_Container_Indexing): Add ??? comment. Protect
against malformed tree in case of errors.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 829 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200707/20d0fc57/attachment.bin>
More information about the Gcc-patches
mailing list