Skip to content

gccrs: Fix ICE when parsing empty path expression#4558

Merged
CohenArthur merged 1 commit into
Rust-GCC:masterfrom
Polygonalr:pr-3286
May 28, 2026
Merged

gccrs: Fix ICE when parsing empty path expression#4558
CohenArthur merged 1 commit into
Rust-GCC:masterfrom
Polygonalr:pr-3286

Conversation

@Polygonalr
Copy link
Copy Markdown
Contributor

This PR is basically a revival of #3286, that PR can be closed when this gets merged.

@Polygonalr Polygonalr marked this pull request as ready for review May 27, 2026 01:11
Comment thread gcc/testsuite/rust/compile/paamayim_nekudotayim.rs Outdated
gcc/rust/ChangeLog:

	* parse/rust-parse-impl.hxx(parse_expr_stmt): Return error early when
	parse_path_in_expression() returns an error node.

Signed-off-by: Yap Zhi Heng <yapzhhg@gmail.com>
Copy link
Copy Markdown
Member

@CohenArthur CohenArthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Well done. I think your commit message looks good too :)

@CohenArthur CohenArthur added this pull request to the merge queue May 28, 2026
Merged via the queue into Rust-GCC:master with commit dcf6569 May 28, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants