Landing: 94556938452d

Project / Subsystem

gcc / c++

Date

2026-07-26

Author

Torbjörn SVENSSON

Commit

94556938452d2bde01f5954207294906bbb53d8f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
94556938452d2bde01f5954207294906bbb53d8f
source_type
github
headline
ICE on systems without mmap support when finishing module output
tldr
Fixes an internal compiler error (ICE) in `cc1plus` on systems without `mmap` support when handling module output after prior errors.
author
Torbjörn SVENSSON
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • compiler internals
  • • bugfix
  • • mmap
discussion_id_link
—
bugzilla_pr
—
date
2026-07-26T00:00:00.000Z

The C++ compiler (cc1plus) could encounter an internal compiler error (ICE) on systems lacking mmap support. This occurred when module output processing was attempted after earlier errors prevented the elf_out::begin function from running. The fix ensures that elf_out::end does not attempt to finalize output that never properly began, preventing the ICE.