diff options
author | Steve Baird <baird@adacore.com> | 2021-10-04 15:33:18 -0700 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-10-11 13:38:12 +0000 |
commit | 2ad5d5e3d5d40f220df7239b54d5017259dc4d1d (patch) | |
tree | c5c2def98d6a5e0dd9b05f762ce35ef657f0b791 /gcc/ipa-modref.c | |
parent | 26a7b2ada5f9be63a99ca3eca2a66168c8b2b26f (diff) | |
download | gcc-2ad5d5e3d5d40f220df7239b54d5017259dc4d1d.zip gcc-2ad5d5e3d5d40f220df7239b54d5017259dc4d1d.tar.gz gcc-2ad5d5e3d5d40f220df7239b54d5017259dc4d1d.tar.bz2 |
[Ada] Incorrect Dynamic_Predicate results for static arguments
gcc/ada/
* exp_ch6.adb (Can_Fold_Predicate_Call): Do not attempt folding
if there is more than one predicate involved. Recall that
predicate aspect specification are additive, not overriding, and
that there are three different predicate
aspects (Dynamic_Predicate, Static_Predicate, and the
GNAT-defined Predicate aspect). These various ways of
introducing multiple predicates are all checked for. A new
nested function, Augments_Other_Dynamic_Predicate, is
introduced.
* sem_ch4.adb
(Analyze_Indexed_Component_Form.Process_Function_Call): When
determining whether a name like "X (Some_Discrete_Type)" might
be interpreted as a slice, the answer should be "no" if the
type/subtype name denotes the current instance of type/subtype.
Diffstat (limited to 'gcc/ipa-modref.c')
0 files changed, 0 insertions, 0 deletions