Landing: 7c3e6df8ae01
Project / Subsystem
gcc / gcc/c
Date
2026-02-28
Author
Martin Uecker
Commit
7c3e6df8ae01a473fba63e12efe2c82bd50ad502
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/c
- patch_id
- —
- commit_hash
- 7c3e6df8ae01a473fba63e12efe2c82bd50ad502
- source_type
- github
- headline
- Fix recursive struct/union redeclaration with qualifiers
- tldr
- GCC now correctly handles recursive structure/union redeclarations involving qualifiers by checking for consistency after completing the variants.
- author
- Martin Uecker
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c
- • struct
- • union
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-02-28T00:00:00.000Z
GCC previously rejected valid recursive redeclarations of structures and unions when qualifiers were involved because consistency checks were performed before the variants were fully processed. This commit fixes the issue by deferring the consistency check until after variant completion, ensuring that the complete structure/union definition is available. This resolves a bug that prevented correct code from compiling.