When procedure that implements Put_Image attribute emits the type name,
this name was wrongly followed by a NUL character.
gcc/ada/
* exp_put_image.adb (Build_Record_Put_Image_Procedure): Remove
trailing NUL from the fully qualified type name.
Parameter_Associations => New_List
(Make_Identifier (Loc, Name_S),
Make_String_Literal (Loc,
- To_String (Fully_Qualified_Name_String (Btyp))))));
+ To_String
+ (Fully_Qualified_Name_String
+ (Btyp, Append_NUL => False))))));
end if;
elsif Is_Null_Record_Type (Btyp, Ignore_Privacy => True) then