]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Refine patch for spurious link error involving discriminated types
authorEd Schonberg <schonberg@adacore.com>
Wed, 30 Jun 2021 22:11:11 +0000 (18:11 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 21 Sep 2021 15:24:55 +0000 (15:24 +0000)
commitc36332031cff305ceb0d1924ee4b2cedbd85023a
tree966eaf6bb2596009896944c2ca5a3304050e9011
parent4d027eea556463895e524514c947b080a173b6e9
[Ada] Refine patch for spurious link error involving discriminated types

gcc/ada/

* sem_ch3.adb (Process_Discriminant_Expressions): If the
constraint is for a Component_Definition that appears in a
Component_Declaration, the entity to be used to create the
potentially global symbol is the Defining_Identifier of the
Component_Declaration.
gcc/ada/sem_ch3.adb