diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-07-30 00:19:15 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:56:03 +0100 |
commit | 0610584d0d03dc44ce7403dad7028bdc1acceb7e (patch) | |
tree | 8feaf5c0418e35e0572a8f308839b9d1cf3f0d28 /gcc/rust/util/rust-unicode.cc | |
parent | 6164ec07c64f9ceb40fc5f4f6efb5c0f836fb04f (diff) | |
download | gcc-0610584d0d03dc44ce7403dad7028bdc1acceb7e.zip gcc-0610584d0d03dc44ce7403dad7028bdc1acceb7e.tar.gz gcc-0610584d0d03dc44ce7403dad7028bdc1acceb7e.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/util/rust-unicode.cc')
0 files changed, 0 insertions, 0 deletions