Landing: 6e7832610eb9
Project / Subsystem
gcc / fortran
Date
2026-06-12
Author
Tobias Burnus
Commit
6e7832610eb944046492d82ccd508a2484b03fce
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- 6e7832610eb944046492d82ccd508a2484b03fce
- source_type
- github
- headline
- Fortran improves OpenMP/OpenACC syntax diagnostics
- tldr
- Fortran OpenMP/OpenACC syntax errors now yield more informative 'Syntax error in statement' messages, improving diagnostic quality.
- author
- Tobias Burnus
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • openmp
- • openacc
- • diagnostics
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-12T00:00:00.000Z
The Fortran front end in GCC now provides more precise and helpful error messages for OpenMP and OpenACC syntax mistakes. Previously, a generic “Unclassifiable OpenMP/OpenACC directive” error was often reported, even for valid directives with syntax errors, because internal matching logic would reset the error locus. The updated parser now retains more context and reports “Syntax error in statement” with a correct pointer to the error location, making it easier for developers to identify and fix issues in their parallel programming directives.