Landing: fae5d567d1c5
Project / Subsystem
gcc / gccrs
Date
2026-07-12
Author
Yap Zhi Heng
Commit
fae5d567d1c573e5da613539d406124da249cc96
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- fae5d567d1c573e5da613539d406124da249cc96
- source_type
- github
- headline
- Support zero-sized type checking for `repr(transparent)` in gccrs
- tldr
- gccrs now correctly type-checks `#[repr(transparent)]` structs, including zero-sized ones.
- author
- Yap Zhi Heng
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • rust
- • compiler
- • type system
- • repr
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-12T00:00:00.000Z
gccrs has been updated to properly support type checking for Rust’s #[repr(transparent)] attribute, specifically for zero-sized types (ZSTs). New functions are introduced to determine if a type is zero-sized, and these checks are integrated into the type-checking logic for transparent structs, ensuring correct handling of types like PhantomData within them.