Landing: 4c052de3d7a3

Project / Subsystem

gcc / gccrs

Date

2026-08-18

Author

Utkarsh Bahuguna

Commit

4c052de3d7a37c0cb5ec6f6261c27a1658a7af74

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
4c052de3d7a37c0cb5ec6f6261c27a1658a7af74
source_type
github
headline
gccrs: Report errors for empty path expressions
tldr
Ensures gccrs reports diagnostics for empty path expressions, preventing downstream ICEs.
author
Utkarsh Bahuguna
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rust
  • • parser
  • • error handling
  • • compiler bugs
discussion_id_link
—
bugzilla_pr
—
date
2026-08-18T00:00:00.000Z

This commit improves error reporting in gccrs by ensuring that empty path expressions, such as those starting with ::, trigger a diagnostic. Previously, the parser might silently return an error node, leading to internal compiler errors (ICEs) later in the process. The redundant guard in parse_stmt_or_expr was also removed. New test cases empty_path2.rs and empty_path3.rs are added.