aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorJavier Miranda <miranda@adacore.com>2024-08-07 17:41:42 +0000
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-08-23 10:51:05 +0200
commita7ff045c4492738b62b486d81ae4618990b73539 (patch)
tree7c1afae715b48c834425d74200ae34e3c6f0ca95 /gcc/expr.cc
parent7dd9c7d1293ad16708748f617e10263e4ee88a39 (diff)
downloadgcc-a7ff045c4492738b62b486d81ae4618990b73539.zip
gcc-a7ff045c4492738b62b486d81ae4618990b73539.tar.gz
gcc-a7ff045c4492738b62b486d81ae4618990b73539.tar.bz2
ada: Crash on string interpolation with custom string types
The compiler crashes when processing an object declaration of a custom string type initialized with an interpolated string. gcc/ada/ * exp_attr.adb (Expand_N_Attribute_Reference: [Put_Image]): Add support for custom string types. * exp_ch2.adb (Expand_N_Interpolated_String_Literal): Add a type conversion to the result object declaration of custom string types. * exp_put_image.adb (Build_String_Put_Image_Call): Handle custom string types.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions