diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2017-04-25 10:33:18 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2017-04-25 10:33:18 +0200 |
commit | 2bb988bb1cb15663ce9d01368d31d66161183b41 (patch) | |
tree | ef7d98dc387ce923dcfce2f345cce20be82944bd /gcc/ada/sem_aggr.adb | |
parent | b03d3f7390b5744c5fdf54a73fec6a28a8849a1b (diff) | |
download | gcc-2bb988bb1cb15663ce9d01368d31d66161183b41.zip gcc-2bb988bb1cb15663ce9d01368d31d66161183b41.tar.gz gcc-2bb988bb1cb15663ce9d01368d31d66161183b41.tar.bz2 |
[multiple changes]
2017-04-25 Hristian Kirtchev <kirtchev@adacore.com>
* sem_aggr.adb, inline.adb, einfo.adb, einfo.ads, scng.adb,
sem_prag.adb: Minor reformatting.
2017-04-25 Bob Duff <duff@adacore.com>
* sem_attr.adb (Type_Key): Add code in the
recursive Compute_Type_Key to protect against fetching the source
code for Standard, in case a component of the type is declared
in Standard. There was already code to do this for the original
type, but not for its components.
From-SVN: r247147
Diffstat (limited to 'gcc/ada/sem_aggr.adb')
-rw-r--r-- | gcc/ada/sem_aggr.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sem_aggr.adb b/gcc/ada/sem_aggr.adb index 223a59f..d183835 100644 --- a/gcc/ada/sem_aggr.adb +++ b/gcc/ada/sem_aggr.adb @@ -1666,7 +1666,7 @@ package body Sem_Aggr is else Analyze (Choice); - -- Choice can be a subtype name, a range, or an expression. + -- Choice can be a subtype name, a range, or an expression if Is_Entity_Name (Choice) and then Is_Type (Entity (Choice)) |