Landing: 2ce11ed2a2f4
Project / Subsystem
gcc / gcc/m2
Date
2026-09-25
Author
Gaius Mulley
Commit
2ce11ed2a2f4eeae68a5cb059307be8153448d8d
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/m2
- patch_id
- —
- commit_hash
- 2ce11ed2a2f4eeae68a5cb059307be8153448d8d
- source_type
- github
- headline
- PR modula2/127567: Local module import cannot import external module
- tldr
- Fixes an issue where local module imports in Modula-2 could not access external libraries imported by the main module.
- author
- Gaius Mulley
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • modula2
- • compiler
- • modules
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-25T00:00:00.000Z
This change addresses a limitation in the Modula-2 compiler where a local module’s import statement could not refer to an external module if that module was only imported by the main program. The fix ensures that local imports can access external modules if they are available at the main module level, improving module usability.