diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-08-21 12:35:26 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:00:33 +0100 |
commit | 6505e466507a6635f9fe1a7ed38d9b6e6cad1737 (patch) | |
tree | f0e7951cd7d4bacdc8db106800e3a269825294ef /gcc/rust/rust-gcc.cc | |
parent | c7c9bbaa1a12c47ccd6e6c13cca6161e59f4fa5c (diff) | |
download | gcc-6505e466507a6635f9fe1a7ed38d9b6e6cad1737.zip gcc-6505e466507a6635f9fe1a7ed38d9b6e6cad1737.tar.gz gcc-6505e466507a6635f9fe1a7ed38d9b6e6cad1737.tar.bz2 |
gccrs: Fix compilation of types which hold onto dangling infer vars
There is a case where some generic types are holding onto inference
variable pointers directly. So this gives the backend a chance to do one
final lookup to resolve the type.
This now allows us to compile a full test case for iterators but there is
still one miscompilation in here which results in a segv on O2 and bad
result on -O0.
Addresses #1895
gcc/rust/ChangeLog:
* backend/rust-compile-type.cc (TyTyResolveCompile::visit): do a final lookup
gcc/testsuite/ChangeLog:
* rust/compile/iterators1.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
0 files changed, 0 insertions, 0 deletions