Skip to content

Conversation

@philberty
Copy link
Member

When the resulting trait item is in an error state this means the underlying fields will be null.

Fixes #2478

When the resulting trait item is in an error state this means the
underlying fields will be null.

Fixes #2478

gcc/rust/ChangeLog:

	* typecheck/rust-hir-type-check-item.cc: add is_error check

gcc/testsuite/ChangeLog:

	* rust/compile/non_member_const.rs: add missing error message
	* rust/compile/issue-2478.rs: New test.

Signed-off-by: Philip Herron <[email protected]>
@philberty philberty added the bug label Jul 29, 2023
@philberty philberty enabled auto-merge July 29, 2023 16:38
@philberty philberty added this pull request to the merge queue Jul 29, 2023
Merged via the queue into master with commit 5a378ed Jul 29, 2023
@philberty philberty deleted the phil/ice-trait-item branch July 31, 2023 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ICE - Segmentation fault after unknown trait item

2 participants