aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree/rust-hir-pattern.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2025-07-31 21:46:42 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2025-08-05 16:37:00 +0200
commit948e4a63455c090afd491c7b669896d47ae08559 (patch)
treea86fce84935c26b2479fbd1b89616beb7198f5d0 /gcc/rust/hir/tree/rust-hir-pattern.h
parent2dcfb123df07301593581e01b4adcdf6b8197f60 (diff)
downloadgcc-948e4a63455c090afd491c7b669896d47ae08559.zip
gcc-948e4a63455c090afd491c7b669896d47ae08559.tar.gz
gcc-948e4a63455c090afd491c7b669896d47ae08559.tar.bz2
gccrs: Fix ICE during const eval of const capacity
We assert that struct expressions during code-gen must be of TyTy::ADTType but we can simply just check for this and return error_mark_node to make this safe. Fixes Rust-GCC#3960 gcc/rust/ChangeLog: * backend/rust-compile-expr.cc (CompileExpr::visit): check for ADTType instead of assert gcc/testsuite/ChangeLog: * rust/compile/issue-3960.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir-pattern.h')
0 files changed, 0 insertions, 0 deletions