]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Spurious style error with mutiple square brackets
authorJustin Squirek <squirek@adacore.com>
Thu, 9 May 2024 20:16:24 +0000 (20:16 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 21 Jun 2024 08:34:17 +0000 (10:34 +0200)
commit3ebd803b861e1da85f08664915e3267f690ff611
tree4a9bb058d144725d321f38fd59861bab6a894cb5
parent59221dc587f369695d9b0c2f73aedf8458931f0f
ada: Spurious style error with mutiple square brackets

This patch fixes a spurious error in the compiler when checking for style for
token separation where two square brackets are next to each other.

gcc/ada/

* csets.ads (Identifier_Char): New function - replacing table.
* csets.adb (Identifier_Char): Rename and move table for static values.
(Initialize): Remove dynamic calculations.
(Identifier_Char): New function to calculate dynamic values.
* opt.adb (Set_Config_Switches): Remove setting of Identifier_Char.
gcc/ada/csets.adb
gcc/ada/csets.ads
gcc/ada/opt.adb