ada: Spurious error on string interpolation
commit833f91bb67700571e03095d4cb0a5055372cff4d
authorJavier Miranda <miranda@adacore.com>
Wed, 29 Mar 2023 18:48:19 +0000 (29 18:48 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 29 May 2023 08:23:18 +0000 (29 10:23 +0200)
tree83685a99e94393030fd47723f7a7497a3de84c3a
parentf180888c8f38920e6731e5bc1dc5e06f5ac7d340
ada: Spurious error on string interpolation

The frontend reports spurious errors on operators found in
interpolated string literals.

gcc/ada/

* scans.ads (Inside_Interpolated_String_Expression): New variable.
* par-ch2.adb (P_Interpolated_String_Literal): Set/clear new
variable when parsing interpolated string expressions.
* scng.adb (Set_String): Skip processing operator symbols when we
arescanning an interpolated string literal.
gcc/ada/par-ch2.adb
gcc/ada/scans.ads
gcc/ada/scng.adb