Landing: a39d268ced98

Project / Subsystem

gcc / openmp/fortran

Date

2026-09-26

Author

Tobias Burnus

Commit

a39d268ced985763ac84ba87c243d44f79dd304a

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
openmp/fortran
patch_id
—
commit_hash
a39d268ced985763ac84ba87c243d44f79dd304a
source_type
github
headline
OpenMP/Fortran: Accept optional constant boolean expressions for clauses
tldr
Fortran OpenMP now supports optional constant logical expressions for clauses, allowing dynamic enablement/disablement.
author
Tobias Burnus
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • openmp
  • • fortran
  • • compiler
  • • language feature
discussion_id_link
—
bugzilla_pr
—
date
2026-09-26T00:00:00.000Z

OpenMP 6 introduces the ability to use optional constant logical expressions with clauses that do not typically take arguments. This allows programmers to enable or disable OpenMP features at compile time using .true. or .false. constants. While for some clauses .false. means the clause is absent, for others it means the feature is present but inactive, which affects diagnostics. The implementation currently focuses on Fortran and supports most clauses, with exceptions for mandatory clauses and those already accepting non-constant arguments.