diff options
author | Ed Schonberg <schonberg@adacore.com> | 2019-08-19 08:37:18 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2019-08-19 08:37:18 +0000 |
commit | fcef060c9b321edcb24a56616588e712c22029ba (patch) | |
tree | fa2ac7b8b70693305f9e74b04b5dac7f11a2c259 /gcc/ada/tb-gcc.c | |
parent | c70220382300ae326ad63fe54c5a32da202d1f13 (diff) | |
download | gcc-fcef060c9b321edcb24a56616588e712c22029ba.zip gcc-fcef060c9b321edcb24a56616588e712c22029ba.tar.gz gcc-fcef060c9b321edcb24a56616588e712c22029ba.tar.bz2 |
[Ada] Crash on object initialization that is call to expression function
This patch fixes a compiler abort on an object declaration for a
class-wide type whose expression is a call to an expression function
that returns type extension.
2019-08-19 Ed Schonberg <schonberg@adacore.com>
gcc/ada/
* sem_res.adb (Resolve_Call): A call to an expression function
freezes when expander is active, unless the call appears within
the body of another expression function,
gcc/testsuite/
* gnat.dg/expr_func9.adb: New testcase.
From-SVN: r274662
Diffstat (limited to 'gcc/ada/tb-gcc.c')
0 files changed, 0 insertions, 0 deletions