[Ada] Crash on incorrect frontend inlining in GNATprove mode

Pierre-Marie de Rodat derodat@adacore.com
Mon May 21 15:01:00 GMT 2018


In some cases, the inlining performed in GNATprove mode leads to a crash,
when inlining a call where a return statement of the inlined function
returns a string literal. Now fixed.

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

2018-05-21  Yannick Moy  <moy@adacore.com>

gcc/ada/

	* sem_eval.adb (Static_Length): Take into account case of variable of
	subtype string literal.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 684 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180521/81ff6934/attachment.bin>


More information about the Gcc-patches mailing list