Landing: 393a84e17375
Project / Subsystem
gcc / gcc
Date
2026-08-06
Author
Jakub Jelinek
Commit
393a84e17375c8545a36e758067bac8dc7200367
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc
- patch_id
- —
- commit_hash
- 393a84e17375c8545a36e758067bac8dc7200367
- source_type
- github
- headline
- Corrected identifier character property checks for Rust frontend.
- tldr
- Fixes `cpp_check_xid_property` to accurately distinguish between Unicode XID_Start and XID_Continue properties for identifier validation.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • rust
- • compiler
- • unicode
- • identifier
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-06T00:00:00.000Z
This commit corrects the cpp_check_xid_property function, which is used by the Rust frontend for identifier validation. The function previously misapplied Unicode character properties, incorrectly classifying characters with only the XID_Continue property as valid starting characters for identifiers. The fix ensures that only characters with the XID_Start property are accepted as initial identifier characters, aligning with Unicode standards and preventing potential issues in languages like Rust that rely on these precise checks.