[Ada] Ada2020: parsing of qualified exprs with new agg syntax
authorBob Duff <duff@adacore.com>
Wed, 1 Jul 2020 20:22:46 +0000 (16:22 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 16 Oct 2020 07:34:53 +0000 (03:34 -0400)
commit54690b9871d742bb322d28f7c1c4fa8b81cf94e6
treeca9d4029e2f8759b3a5991696fd917ebb2170bdf
parent2357b2948db15d5e3529d2368e11b4f6caa2dca0
[Ada] Ada2020: parsing of qualified exprs with new agg syntax

gcc/ada/

* par-ch4.adb (P_Name): Allow Tok_Left_Bracket in two places to
call P_Qualified_Expression. We don't need to modify other
places that call P_Qualified_Expression, because a
qualified_expression is a name in Ada 2012 and higher, so P_Name
is the right place.  The parser already parses aggregates with
brackets; we just need to allow that in qualified expressions.
gcc/ada/par-ch4.adb