]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Fix ICE accessing empty vector without check
authorPhilip Herron <herron.philip@googlemail.com>
Sat, 3 Feb 2024 16:32:13 +0000 (16:32 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 7 Feb 2024 11:40:22 +0000 (12:40 +0100)
commit1c649ac36f1eab8094fb0a697c001e064c031ac1
tree19b0261d51cd86b1a0fb5b24d4351efb563d16a0
parent9fecac88d3ce37d3c2c483ea712e48baf904f27b
gccrs: Fix ICE accessing empty vector without check

Fixes #2747

gcc/rust/ChangeLog:

* typecheck/rust-tyty-subst.cc (SubstitutionRef::get_mappings_from_generic_args): fix

gcc/testsuite/ChangeLog:

* rust/compile/issue-2747.rs: New test.
gcc/rust/typecheck/rust-tyty-subst.cc
gcc/testsuite/rust/compile/issue-2747.rs [new file with mode: 0644]