]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: FIX ICE when working with HIR::BareFunctionType
authorPhilip Herron <herron.philip@googlemail.com>
Fri, 28 Mar 2025 17:42:07 +0000 (17:42 +0000)
committerPhilip Herron <philip.herron@embecosm.com>
Fri, 28 Mar 2025 18:34:27 +0000 (18:34 +0000)
commit8d1c01c818428a432dc7a64237bdf62aa3fd0c6c
tree1a298e20124fe07e3ce6ffc265eea42091e72583
parenta0b21c94157d85f4ab87aa9aee83cb629678f72a
gccrs: FIX ICE when working with HIR::BareFunctionType

Fixes Rust-GCC#3615

gcc/rust/ChangeLog:

* hir/rust-hir-dump.cc (Dump::visit): check has type
* hir/tree/rust-hir-type.cc (BareFunctionType::BareFunctionType): likewise

gcc/testsuite/ChangeLog:

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

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/hir/rust-hir-dump.cc
gcc/rust/hir/tree/rust-hir-type.cc
gcc/testsuite/rust/compile/issue-3615.rs [new file with mode: 0644]