aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-loop-interchange.cc
diff options
context:
space:
mode:
authorMuhammad Mahad <mahadtxt@gmail.com>2023-08-16 17:40:09 +0500
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:00:31 +0100
commitcdddf7baff74af1542788868d1cfab6dc435f2ef (patch)
treeadd07d913086d23ecab5d6dfe5c5bb4b7f1c4393 /gcc/gimple-loop-interchange.cc
parent87ccd32da00e82584215c759e80bd092003c9efb (diff)
downloadgcc-cdddf7baff74af1542788868d1cfab6dc435f2ef.zip
gcc-cdddf7baff74af1542788868d1cfab6dc435f2ef.tar.gz
gcc-cdddf7baff74af1542788868d1cfab6dc435f2ef.tar.bz2
gccrs: [E0164] Neither tuple struct nor tuple variant used as a pattern
Checking if pattern has items, before returing solves ICE. Added error code and rich location. Also, fixes https://github.com/Rust-GCC/gccrs/issues/2430 gcc/rust/ChangeLog: * ast/rust-pattern.h: No need of assertion, we are handling it. * resolve/rust-early-name-resolver.cc (EarlyNameResolver::visit): Added check which emits error instead of using assertion. * typecheck/rust-hir-type-check-pattern.cc (TypeCheckPattern::visit): Added rich location and error code. gcc/testsuite/ChangeLog: * rust/compile/match5.rs: Updated comment for dejagnu. * rust/compile/pattern-struct.rs: New test for ICE. Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc/gimple-loop-interchange.cc')
0 files changed, 0 insertions, 0 deletions