[Ada] Clean up support of square brackets
authorArnaud Charlet <charlet@adacore.com>
Thu, 2 Jul 2020 10:10:28 +0000 (06:10 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 19 Oct 2020 09:53:35 +0000 (05:53 -0400)
commite335bd2e6ebc23050d48ad17584323f590733d50
tree37db2786b4d4d39392a48fed19899939539775e4
parent52ad13baa53dcf13c9ec28e37196ac644abc60c4
[Ada] Clean up support of square brackets

gcc/ada/

* par-ch4.adb (P_Aggregate_Or_Paren_Expr): Simplify code since
we are always under -gnatX if we encounter a Tok_Left_Bracket.
* scng.adb (Scan): [] is an aggregate under -gnatX and a wide
character otherwise.
gcc/ada/par-ch4.adb
gcc/ada/scng.adb