Skip to content

gccrs: Port over missing GOTO handling from cp/constexpr.cc - #4796

Merged
philberty merged 1 commit into
masterfrom
phil/const-expr-eval-match
Aug 18, 2026
Merged

gccrs: Port over missing GOTO handling from cp/constexpr.cc#4796
philberty merged 1 commit into
masterfrom
phil/const-expr-eval-match

Conversation

@philberty

Copy link
Copy Markdown
Member

Fixes #1553

gcc/rust/ChangeLog:

* backend/rust-constexpr.cc (eval_constant_expression): port over goto
(potential_constant_expression_1): likewise

gcc/testsuite/ChangeLog:

* rust/compile/issue-1553.rs: New test.

Fixes #1553

gcc/rust/ChangeLog:

	* backend/rust-constexpr.cc (eval_constant_expression): port over goto
	(potential_constant_expression_1): likewise

gcc/testsuite/ChangeLog:

	* rust/compile/issue-1553.rs: New test.

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
@philberty philberty added this to the Lowering fixes core 1.49 milestone Aug 17, 2026
@philberty
philberty added this pull request to the merge queue Aug 18, 2026
Merged via the queue into master with commit a263235 Aug 18, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in libcore 1.49 Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

match not returning correct value in const function.

1 participant