[Ada] Fix on computation of packed array size in case of error
Pierre-Marie de Rodat
derodat@adacore.com
Thu Jul 8 13:50:08 GMT 2021
In case of compilation error, the low and high bounds of the array
type might have been replaced by an error node. Deal with this case
by checking that the bounds are known at compile time.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* layout.adb (Layout_Type): Add guard before calling Expr_Value.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1748 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210708/52ba35b8/attachment.bin>
More information about the Gcc-patches
mailing list