diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-07-30 00:19:15 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-07-30 00:08:48 +0000 |
commit | 5ad0febb770177b5d32aa4f11a7b377de2773d84 (patch) | |
tree | 4f56ab08f1dc5f4bf8f39323627cae2f1178b3d2 /gcc/rust/resolve | |
parent | 5785d329b1f4782ea4abf75fc4fd22fe4dfed5d8 (diff) | |
download | gcc-5ad0febb770177b5d32aa4f11a7b377de2773d84.zip gcc-5ad0febb770177b5d32aa4f11a7b377de2773d84.tar.gz gcc-5ad0febb770177b5d32aa4f11a7b377de2773d84.tar.bz2 |
gccrs: fix ice when function is outside of context
Fixes #2477
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit):
We need to check if a function context exists
gcc/testsuite/ChangeLog:
* rust/compile/issue-2477.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions