]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: fix ice when setting up regions
authorPhilip Herron <herron.philip@googlemail.com>
Fri, 28 Mar 2025 18:24:57 +0000 (18:24 +0000)
committerPhilip Herron <philip.herron@embecosm.com>
Fri, 28 Mar 2025 19:10:35 +0000 (19:10 +0000)
commit8b5f1f296b60f9343ed995f14552d022f077e1f6
tree0c2d859ba0e62f057147d2e5c14a443b9eab069e
parent6130523c8b98178e6bdbde9e33a4ca8c95226bf1
gccrs: fix ice when setting up regions

num regions is based on the used arguments of regions which can be
less than the substutions requirements. So lets check for that and allow
anon regions to be created for them.

Fixes Rust-GCC#3605

gcc/rust/ChangeLog:

* typecheck/rust-tyty-subst.h: check for min range

gcc/testsuite/ChangeLog:

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

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/typecheck/rust-tyty-subst.h
gcc/testsuite/rust/compile/issue-3605.rs [new file with mode: 0644]