Landing: 318e6a464042
Project / Subsystem
gcc / c++
Date
2026-08-18
Author
Jakub Jelinek
Commit
318e6a4640420d5cc213df779bf751485fa56063
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- 318e6a4640420d5cc213df779bf751485fa56063
- source_type
- github
- headline
- C++: Fix ICE during explanation of failed __has_unique_object_representation
- tldr
- Fixes an internal compiler error related to explaining type information for __has_unique_object_representation.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • compiler bug
- • ice
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-18T00:00:00.000Z
This commit resolves an ICE (Internal Compiler Error) in GCC’s C++ frontend that occurred during the explanation of failed __has_unique_object_representation checks. The issue stemmed from incorrectly trying to get the source location of a type, which led to a crash. The fix involves using the location_of utility to correctly retrieve location information, preventing the ICE and ensuring accurate error reporting.