diff options
author | Javier Miranda <miranda@adacore.com> | 2023-02-17 18:57:07 +0000 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-23 09:59:05 +0200 |
commit | 90e1445904179706e50c90c6553e127dbb2c43e8 (patch) | |
tree | 626636b50e33bfdc3955b323b1276d13567a4963 /gcc/ada/sem_ch3.adb | |
parent | 18ed1bc59391acdad7e80750239b536b3e371d00 (diff) | |
download | gcc-90e1445904179706e50c90c6553e127dbb2c43e8.zip gcc-90e1445904179706e50c90c6553e127dbb2c43e8.tar.gz gcc-90e1445904179706e50c90c6553e127dbb2c43e8.tar.bz2 |
ada: Spurious errors on class-wide preconditions of private types
The compiler reports spurious errors processing the class-wide
preconditions of a dispatching primitive of a private type T, when
the class-wide precondition invokes another dispatching primitive
of T that has the same name as a record component of T.
gcc/ada/
* sem_prag.adb (Analyze_Pre_Post_Condition_In_Decl_Part): Remove
call to preanalyze class-wide conditions since here it is too
early; they must be preanalyzed when full views of private types
have been analyzed.
* sem_ch7.adb (Analyze_Package_Specification): Preanalyze
class-wide conditions of dispatching primitives defined in nested
packages.
Diffstat (limited to 'gcc/ada/sem_ch3.adb')
0 files changed, 0 insertions, 0 deletions