diff options
author | Steve Baird <baird@adacore.com> | 2022-01-14 14:10:25 -0800 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-10 08:19:21 +0000 |
commit | a445a8692c43d14c494e1edf505ee4f33cb98bb6 (patch) | |
tree | fe3033771bba214d53211df1687fdc2a57388706 /gcc/fold-const.cc | |
parent | 3d9e2004fe4e15b133bd8472c4bf46cbff809583 (diff) | |
download | gcc-a445a8692c43d14c494e1edf505ee4f33cb98bb6.zip gcc-a445a8692c43d14c494e1edf505ee4f33cb98bb6.tar.gz gcc-a445a8692c43d14c494e1edf505ee4f33cb98bb6.tar.bz2 |
[Ada] Failure compiling "for ... of" loop over a slice
In some cases involving a "for ... of" loop (not to be confused with the
more common "for ... in" loop) iterating over a slice, compilation would
fail with an internal compiler error.
gcc/ada/
* sem_util.adb (Get_Actual_Subtype): If a new subtype is built,
do not freeze it if Expander_Active is False. The idea here is
to avoid generating an unwanted Freeze_Node for a subtype that
has been conjured up solely for purposes of preanalysis.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions