[Ada] Spurious undefined symbol with nested call to expression function
authorEd Schonberg <schonberg@adacore.com>
Thu, 2 Apr 2020 20:47:17 +0000 (16:47 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 16 Jun 2020 13:07:11 +0000 (09:07 -0400)
commit1fe73fd6965364ba89ff2919ef8bfd416298615f
tree75ff03b74f10bf0024016edec056534b209d613b
parentd7769a80a8ca67be548ad926c81b8a23eedfc3ea
[Ada] Spurious undefined symbol with nested call to expression function

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

gcc/ada/

* freeze.adb: (Freeze_Expression, In_Expanded_Body): Treat the
generated body of an expression function like other bodies
generated during expansion (e.g. stream subprograms) so that
those bodies are not treated as freezing points. Handle properly
other global references in such completions.
gcc/ada/freeze.adb