diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2020-05-15 15:11:18 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-07-08 10:55:53 -0400 |
commit | 720425fa2dca0b7a69e28b1853932d5a77bf9333 (patch) | |
tree | acd28f40999e21e93a6f512d2f5df368b1921046 /gcc/ada/debug.adb | |
parent | 6b52c24dd1870aff68879bd68a67fdb14f7e5cba (diff) | |
download | gcc-720425fa2dca0b7a69e28b1853932d5a77bf9333.zip gcc-720425fa2dca0b7a69e28b1853932d5a77bf9333.tar.gz gcc-720425fa2dca0b7a69e28b1853932d5a77bf9333.tar.bz2 |
[Ada] Accept aspect Relaxed_Initialization on generic subprograms
gcc/ada/
* sem_attr.adb (Analyze_Attribute): Correct prefix of 'Result
this prefix is a generic function but the enclosing aspect or
pragma is attached to its instance.
* sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Analyze
generic subprogram formal parameters (including the implicit
result of a generic function) and only then analyse its aspects,
because with Relaxed_Initialization the aspect expression might
refer to those formal parameters.
* sem_ch13.adb (Analyze_Aspect_Relaxed_Initialization): Accept
aspect on generic subprograms; install formal parameters of a
generic subprogram but not formal parameters of the generic unit
itself (the previous code was inspired by aspects Post and
Depends, where both kinds of formals are allowed).
* sem_util.ads (Enter_Name): Fix name of a subprogram referenced
in comment.
Diffstat (limited to 'gcc/ada/debug.adb')
0 files changed, 0 insertions, 0 deletions