aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-expand.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2020-12-22 23:06:19 +0000
committerPhilip Herron <herron.philip@googlemail.com>2020-12-23 12:32:15 +0000
commita4e20cf765364221946200c8e7f96c2041f827a5 (patch)
treee193a083e8e9a462df3f6b17b1edd54878ec5b4a /gcc/rust/expand/rust-macro-expand.h
parent04bcc692f53d9d0dd85f6c2b8d313e3f69ccf52d (diff)
downloadgcc-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/expand/rust-macro-expand.h')
0 files changed, 0 insertions, 0 deletions