diff options
author | Philip Herron <philip.herron@embecosm.com> | 2020-12-22 23:06:19 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2020-12-23 12:32:15 +0000 |
commit | a4e20cf765364221946200c8e7f96c2041f827a5 (patch) | |
tree | e193a083e8e9a462df3f6b17b1edd54878ec5b4a /gcc/rust/rust-linemap.cc | |
parent | 04bcc692f53d9d0dd85f6c2b8d313e3f69ccf52d (diff) | |
download | gcc-a4e20cf765364221946200c8e7f96c2041f827a5.zip gcc-a4e20cf765364221946200c8e7f96c2041f827a5.tar.gz gcc-a4e20cf765364221946200c8e7f96c2041f827a5.tar.bz2 |
Shadowing rules are done as part of name resolution.
When a new name is defined the name resolver freezes the previous
declartion such that all new references point to the latest decl.
This patch fixes a crash when we shadow and get a type mismatch and the
combination of types fails. See the failure test case for the crash.
Diffstat (limited to 'gcc/rust/rust-linemap.cc')
0 files changed, 0 insertions, 0 deletions