Landing: cc2a9b13bbf9
Project / Subsystem
gcc / c++
Date
2026-07-07
Author
Egas Ribeiro
Commit
cc2a9b13bbf9994f5f27c08a95314b07f4dd7730
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- cc2a9b13bbf9994f5f27c08a95314b07f4dd7730
- source_type
- github
- headline
- C++: Handle nullptr_t in exception conversion checks
- tldr
- Fixes C++ exception handling to correctly match nullptr_t exceptions with pointer handlers.
- author
- Egas Ribeiro
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • exception handling
- • standard conformance
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-07T00:00:00.000Z
This commit corrects C++ exception handling by enabling can_convert_eh to properly match std::nullptr_t exceptions with handlers declared to catch pointer or pointer-to-member types. This ensures that nullptr thrown as an exception can be caught by appropriate handlers, preventing potential runtime errors.