Skip to content

gccrs: Fix ICE when handling invalid results during monomprhization#4604

Merged
philberty merged 1 commit into
masterfrom
phil/ice-trait-err
Jun 24, 2026
Merged

gccrs: Fix ICE when handling invalid results during monomprhization#4604
philberty merged 1 commit into
masterfrom
phil/ice-trait-err

Conversation

@philberty

Copy link
Copy Markdown
Member

Fixes #4486

gcc/rust/ChangeLog:

* backend/rust-compile-item.cc (CompileItem::visit): check instead of assert

gcc/testsuite/ChangeLog:

* rust/compile/issue-4486-1.rs: New test.
* rust/compile/issue-4486-2.rs: New test.

Fixes #4486

gcc/rust/ChangeLog:

	* backend/rust-compile-item.cc (CompileItem::visit): check instead of assert

gcc/testsuite/ChangeLog:

	* rust/compile/issue-4486-1.rs: New test.
	* rust/compile/issue-4486-2.rs: New test.

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
@philberty philberty added diagnostic diagnostic static analysis typechecking codegen labels Jun 24, 2026
@philberty philberty added this pull request to the merge queue Jun 24, 2026
Merged via the queue into master with commit 00f3213 Jun 24, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in libcore 1.49 Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codegen diagnostic diagnostic static analysis typechecking

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ICE: in visit, at rust/backend/rust-compile-item.cc:179

1 participant