File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4969,7 +4969,7 @@ void OmpStructureChecker::CheckTraitSetSelector(
49694969void OmpStructureChecker::CheckTraitScore (const parser::OmpTraitScore &score) {
49704970 // [6.0:322:23]
49714971 // A score-expression must be a non-negative constant integer expression.
4972- if (auto value{GetIntValue (score)}; !value || value <= 0 ) {
4972+ if (auto value{GetIntValue (score)}; !value || value < 0 ) {
49734973 context_.Say (score.source ,
49744974 " SCORE expression must be a non-negative constant integer expression" _err_en_US);
49754975 }
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ subroutine f02
2121 ! $omp & when(user={condition(score(-2): .true.)}: nothing)
2222end
2323
24+ subroutine f02_zero_score
25+ ! $omp metadirective &
26+ ! $omp & when(user={condition(score(0): .true.)}: nothing)
27+ end
28+
2429subroutine f03 (x )
2530 integer :: x
2631 ! $omp metadirective &
You can’t perform that action at this time.
0 commit comments