[Bug ada/107392] excessive compilation time for decimal literal with large exponent

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 17 20:29:06 GMT 2026


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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:

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

commit r16-8743-gdd723b26663c76440ae44e83f0c699240c75b81e
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Fri Apr 17 22:26:56 2026 +0200

    Ada: Fix excessive compilation time for decimal literal with large exponent

    This is a serious contender for the smallest chunk of code still hanging
the
    compiler after three decades.

    gcc/ada/
            PR ada/107392
            * sem_res.adb: Add clauses for Ttypes.
            (Resolve.Patch_Up_Value): Do not try to convert real literals that
            do not fit in Universal_Integer.

    gcc/testsuite/
            * gnat.dg/specs/float_literal2.ads: New test.


More information about the Gcc-bugs mailing list