[Ada] Link failure with call to expression function in precondition
authorEd Schonberg <schonberg@adacore.com>
Mon, 30 Mar 2020 12:26:27 +0000 (08:26 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 15 Jun 2020 08:04:20 +0000 (04:04 -0400)
commit9aa63bdded3b3aa7f4497cf5326e71fc03fda106
tree08a4d798f129f956bba8d0ae46b81b36f678a325
parent36cf595c0b8919dc261771fc5bea0c8b5614ab60
[Ada] Link failure with call to expression function in precondition

2020-06-15  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* freeze.adb (Freeze_Expression): When traversing the tree
looking for the proper insertion point for the freeze node of an
entity that is declared in an outer scope, set the candidate
subprogram body node properly.  Previous code has an off-by-one
error.
gcc/ada/freeze.adb