[Ada] Add continuation message when others choice not allowed

Pierre-Marie de Rodat derodat@adacore.com
Mon Nov 30 14:17:11 GMT 2020


In a context where the bounds of an array aggregate are not known, the
aggregate is not allowed to include an "others" choice. The error
message given by GNAT now includes a suggestion to qualify the aggregate
with a constrained subtype to fix the issue.

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

gcc/ada/

	* sem_aggr.adb (Resolve_Array_Aggregate): Improve error message.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 925 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201130/9406d4ba/attachment-0001.bin>


More information about the Gcc-patches mailing list