aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-07-30 18:59:06 +0100
committerPhilip Herron <philip.herron@embecosm.com>2023-07-30 19:12:06 +0000
commit22f4c74767bddcb9813dca06fc6a354a67d05343 (patch)
tree9fa39ac1f11e58b37a4a4addf9319973ad0a0c25 /gcc/rust/resolve/rust-ast-resolve-expr.cc
parenta3fc40c6749aa0635c03f84b9682fa5e86be7b3d (diff)
downloadgcc-22f4c74767bddcb9813dca06fc6a354a67d05343.zip
gcc-22f4c74767bddcb9813dca06fc6a354a67d05343.tar.gz
gcc-22f4c74767bddcb9813dca06fc6a354a67d05343.tar.bz2
gccrs: Fix ICE by adding check for enum candidate's in TypePath resolution
Fixes #2479 gcc/rust/ChangeLog: * typecheck/rust-hir-trait-resolve.cc (TraitItemReference::resolve_item): always resolve the type even when its an a mandatory trait item * typecheck/rust-hir-type-check-type.cc (TypeCheckType::resolve_root_path): Add check for enum candidates otherwise you get undefined behaviour gcc/testsuite/ChangeLog: * rust/compile/issue-2479.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions