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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Marc Poulhi?s <d...@gcc.gnu.org>:

https://gcc.gnu.org/g:3408792e6016a53cbc10653948e07132d0f13361

commit r15-5153-g3408792e6016a53cbc10653948e07132d0f13361
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Mon Oct 28 11:28:53 2024 +0100

    ada: Fix unexpected Program_Error raised in the parser on mismatched []

    This happens for example with:

      A : constant array (Natural range <>) of String := [ "xor" [;

    The problem is that the left bracket token is incorrectly classified as
    a name extension, but there is no handler in the Scan_Name_Extension_OK
    part of P_Name in Par.Ch4.

    gcc/ada/ChangeLog:

            PR ada/112821
            * scans.ads (Token_Type): Remove Tok_Left_Bracket from Namext.
  • [Bug ada/112821] unexpected Pro... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to