aboutsummaryrefslogtreecommitdiff
path: root/gcc/cif-code.def
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-05-06 12:22:46 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-05-06 16:34:13 +0100
commit224647d24a3fe0411a46ac97d76e06fe2156a9fc (patch)
treedcc8637223ee6d471fe84e39b4336b4e419fd84f /gcc/cif-code.def
parent9ea940e4dcabbf99fbb44c125a0af7cf82e48146 (diff)
downloadgcc-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/cif-code.def')
0 files changed, 0 insertions, 0 deletions