]> gcc.gnu.org Git - gcc.git/commit
ada: Missing runtime check in interpolated string
authorJavier Miranda <miranda@adacore.com>
Tue, 15 Oct 2024 09:32:43 +0000 (09:32 +0000)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 4 Nov 2024 15:57:57 +0000 (16:57 +0100)
commit7c7a8d60881fb727ce8ed4685bc1f484834db110
treee968ebdc4ab04be83f627123062123c5cd91f8fd
parent81ffd5e413e577221a4696fe915b851f1bd4788b
ada: Missing runtime check in interpolated string

When the type imposed by the context for an interpolated string is
constrained, the compiler silently omits adding a runtime check.

gcc/ada/ChangeLog:

* exp_ch2.adb (Expand_N_Interpolated_String_Literal): Use the
base type of the type imposed by the context for building the
interpolated string image; required to allow the expander adding
the missing runtime check when the target type is constrained.
(Apply_Static_Length_Check): New subprogram.
gcc/ada/exp_ch2.adb
This page took 0.053562 seconds and 5 git commands to generate.