diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-05-06 12:22:46 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-05-06 16:34:13 +0100 |
commit | 224647d24a3fe0411a46ac97d76e06fe2156a9fc (patch) | |
tree | dcc8637223ee6d471fe84e39b4336b4e419fd84f /gcc/rust/backend/rust-compile-pattern.cc | |
parent | 9ea940e4dcabbf99fbb44c125a0af7cf82e48146 (diff) | |
download | gcc-224647d24a3fe0411a46ac97d76e06fe2156a9fc.zip gcc-224647d24a3fe0411a46ac97d76e06fe2156a9fc.tar.gz gcc-224647d24a3fe0411a46ac97d76e06fe2156a9fc.tar.bz2 |
Ensure the coercion sites are applied correctly on unions
When we construct a union, we were wrongly compiling the constructor
without taking into account the associated union index. This means we ended
up trying to coerce the wrong field which was always zero here which
resulted in a silent failure by returning error mark node.
The offending test case was: gcc/testsuite/execute/torture/slice1.rs
Diffstat (limited to 'gcc/rust/backend/rust-compile-pattern.cc')
0 files changed, 0 insertions, 0 deletions