]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Fix ICE when using super mid way though path
authorPhilip Herron <herron.philip@googlemail.com>
Wed, 26 Mar 2025 17:26:12 +0000 (17:26 +0000)
committerPhilip Herron <philip.herron@embecosm.com>
Thu, 27 Mar 2025 13:22:39 +0000 (13:22 +0000)
commit34b0a681598d52de442a0a21c3a7df20bf1485bc
tree9f54054ef7a800f08ba1206b19be6827e5763cb8
parent6c14a3b702b4fc693705a64674285900b2ec8b47
gccrs: Fix ICE when using super mid way though path

Fixes Rust-GCC#3568

gcc/rust/ChangeLog:

* resolve/rust-ast-resolve-path.cc (ResolvePath::resolve_path): check for super mid path

gcc/testsuite/ChangeLog:

* rust/compile/nr2/exclude: nr2 puts out a different error multiple times
* rust/compile/issue-3568.rs: New test.

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/resolve/rust-ast-resolve-path.cc
gcc/testsuite/rust/compile/issue-3568.rs [new file with mode: 0644]
gcc/testsuite/rust/compile/nr2/exclude