Landing: 291a8a05c426
Project / Subsystem
gcc / testsuite
Date
2026-05-12
Author
Marek Polacek
Commit
291a8a05c4262d3a6579c2c955c7cb5787c9ea90
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- testsuite
- patch_id
- —
- commit_hash
- 291a8a05c4262d3a6579c2c955c7cb5787c9ea90
- source_type
- github
- headline
- Testsuite: Fix reflect/bases_of5.C for -m32
- tldr
- The test case reflect/bases_of5.C now compiles correctly in 32-bit mode by using `decltype (sizeof 0)` instead of `unsigned long`.
- author
- Marek Polacek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • testsuite
- • reflection
- • 32-bit
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-12T00:00:00.000Z
The test case reflect/bases_of5.C was failing in 32-bit mode. This commit fixes the issue by using decltype (sizeof 0) instead of unsigned long to ensure compatibility with the 32-bit architecture.