Landing: 7b87f41690d4

Project / Subsystem

gcc / libcpp

Date

2026-08-06

Author

Jakub Jelinek

Commit

7b87f41690d46b869c21d0d0537b766698da3827

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libcpp
patch_id
—
commit_hash
7b87f41690d46b869c21d0d0537b766698da3827
source_type
github
headline
libcpp: Fix ICE with __VA_OPT__ [PR125048].
tldr
Corrects an internal compiler error related to macro expansion with __VA_OPT__.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • preprocessor
  • • compiler bug
discussion_id_link
—
bugzilla_pr
—
date
2026-08-06T00:00:00.000Z

This commit resolves an internal compiler error (ICE) in the C preprocessor (libcpp) when handling the __VA_OPT__ macro. The error occurred because macro expansion could reallocate internal data structures while holding pointers to them, leading to a use-after-free situation. The fix ensures that pointers to these reallocated structures are updated correctly.