aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.cc
diff options
context:
space:
mode:
authorJavier Miranda <miranda@adacore.com>2024-04-22 16:36:58 +0000
committerMarc Poulhiès <poulhies@adacore.com>2024-06-13 15:30:27 +0200
commit0690178e66c2fca5e838ada46fa87fa22502f2d7 (patch)
tree25e376490e8bf3f8dfdb9fe9615784850d847da4 /gcc/cp/parser.cc
parent92b554a8412624a0aa3ca9b502976ebec7eff34e (diff)
downloadgcc-0690178e66c2fca5e838ada46fa87fa22502f2d7.zip
gcc-0690178e66c2fca5e838ada46fa87fa22502f2d7.tar.gz
gcc-0690178e66c2fca5e838ada46fa87fa22502f2d7.tar.bz2
ada: Missing dynamic predicate checks
The compiler does not generate dynamic predicate checks when they are enabled for one type declaration and ignored for other type declarations defined in the same scope. gcc/ada/ * sem_ch13.adb (Analyze_One_Aspect): Set the applicable policy of a type declaration when its aspect Dynamic_Predicate is analyzed. * sem_prag.adb (Handle_Dynamic_Predicate_Check): New subprogram that enables or ignores dynamic predicate checks depending on whether dynamic checks are enabled in the context where the associated type declaration is defined; used in the analysis of pragma check. In addition, for pragma Predicate, do not disable it when the aspect was internally build as part of processing a dynamic predicate aspect.
Diffstat (limited to 'gcc/cp/parser.cc')
0 files changed, 0 insertions, 0 deletions