https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115535

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Eric Botcazou
<ebotca...@gcc.gnu.org>:

https://gcc.gnu.org/g:f45fc31bd618154c270fa5a7b354d2025800862b

commit r14-10756-gf45fc31bd618154c270fa5a7b354d2025800862b
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Wed Sep 11 19:37:08 2024 +0200

    ada: Fix negative value returned by 'Image for array with nonnegative
component

    The problem is that Exp_Put_Image.Build_Elementary_Put_Image_Call uses the
    signedness of the base type but the size of the first subtype, hence the
    discrepancy between them.

    gcc/ada/ChangeLog:
            PR ada/115535
            * exp_put_image.adb (Build_Elementary_Put_Image_Call): Use the size
            of the underlying type to find the support type.

Reply via email to