]> git.ipfire.org Git - thirdparty/gcc.git/commit
Visit loop label before predicate expression
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 1 Apr 2025 10:02:31 +0000 (12:02 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Mon, 7 Apr 2025 08:18:19 +0000 (08:18 +0000)
commitb079d612f685de0d7780837bae5bfe88ce46ccbe
treee63b30d1f589fdfa848f01a979677cd620953c66
parent676e3eacc36a233dec52023faa9f3c78007bbabe
Visit loop label before predicate expression

If the label is referenced within the while predicate expression it has
to be resolved before the latter.

gcc/rust/ChangeLog:

* ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Change default
visit order.

gcc/testsuite/ChangeLog:

* rust/compile/nr2/exclude: Remove test from exclusion list.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-ast-visitor.cc
gcc/testsuite/rust/compile/nr2/exclude