Landing: 418c6b5fbab2
Project / Subsystem
gcc / fortran
Date
2026-06-06
Author
Jerry DeLisle
Commit
418c6b5fbab2b3bf5e7727657172864ae5440c1d
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- 418c6b5fbab2b3bf5e7727657172864ae5440c1d
- source_type
- github
- headline
- Fortran: Fixes spurious error with inferred-type ASSOCIATE names
- tldr
- GCC's Fortran compiler no longer produces an incorrect 'Expected argument list' error for component references on inferred-type ASSOCIATE names.
- author
- Jerry DeLisle
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • bugfix
- • parsing
- • type-inference
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-06T00:00:00.000Z
This commit fixes a spurious ‘Expected argument list’ error in GCC’s Fortran compiler when processing component references on inferred-type ASSOCIATE names, as reported in PR125531. Previously, the parser would incorrectly treat a component name as a type-bound procedure. The fix in gfc_match_varspec now retries gfc_find_component with noaccess=true if the default search fails, ensuring that the resolution pass can correctly substitute the final type for inferred-type ASSOCIATE names, preventing false positives.