Skip to content

fix ICE with recursive function calls#2160

Merged
philberty merged 3 commits into
masterfrom
phil/pr4
Apr 26, 2023
Merged

fix ICE with recursive function calls#2160
philberty merged 3 commits into
masterfrom
phil/pr4

Conversation

@philberty

Copy link
Copy Markdown
Member

Fixes #2136

gcc/rust/ChangeLog:

	* lang.opt: add lang option flag
	* rust-lang.cc (grs_langhook_init_options_struct): enable by default

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Fixes #2136

gcc/rust/ChangeLog:

	* backend/rust-compile-item.cc (CompileItem::visit): remove bad checks

gcc/testsuite/ChangeLog:

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

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:

	* backend/rust-compile-implitem.h: remove includes

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
@philberty philberty added the bug label Apr 26, 2023
@philberty philberty enabled auto-merge April 26, 2023 15:03
@philberty philberty added this pull request to the merge queue Apr 26, 2023
Merged via the queue into master with commit 83e971d Apr 26, 2023
@philberty philberty deleted the phil/pr4 branch April 27, 2023 08:37
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 with trait function recursion

1 participant