diff options
author | Philip Herron <herron.philip@googlemail.com> | 2025-03-26 17:11:36 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-31 21:07:16 +0200 |
commit | e60632a2797cb40d301a7421011d2d974a3612df (patch) | |
tree | 577c18982413b3533942ef41f64dc9cb275653b6 /gcc/fortran | |
parent | e545727c840b7359fa27543c598cfa6e4a32e0ff (diff) | |
download | gcc-e60632a2797cb40d301a7421011d2d974a3612df.zip gcc-e60632a2797cb40d301a7421011d2d974a3612df.tar.gz gcc-e60632a2797cb40d301a7421011d2d974a3612df.tar.bz2 |
gccrs: Fix ICE when array elements are not a value
We need to check for error_mark_node when doing adjustments from coercion
sites otherwise we hit assetions as part of the coercion. That fixes the
ICE but the reason for the error_mark_node is because the array element
value.
Fixes Rust-GCC#3567
gcc/rust/ChangeLog:
* backend/rust-compile-expr.cc (CompileExpr::array_value_expr): add value chk for array expr
gcc/testsuite/ChangeLog:
* rust/compile/issue-3567.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions