[Committed] New testcase for C++/71792, bitfields and auto
authorAndrew Pinski <apinski@marvell.com>
Fri, 3 Dec 2021 08:13:32 +0000 (08:13 +0000)
committerAndrew Pinski <apinski@marvell.com>
Fri, 3 Dec 2021 08:17:03 +0000 (08:17 +0000)
commitd82823454355f9d24dba51316145f84ae8d34ff7
tree7c86cb6b86bc915ac66ef97daf5bc0a2556e2339
parent66e157188bd2f789809e17e85f917534c9381599
[Committed] New testcase for C++/71792, bitfields and auto

This testcase used to fail before GCC 6.4.0 due to the wrong
type being used for auto when used with bitfields, the C++
front-end was using the "bitfield" type rather than the
underlaying type.

Committed the testcase after a quick check.

PR c++/71792

gcc/testsuite/ChangeLog:

* g++.dg/torture/pr71792.C: New test.
gcc/testsuite/g++.dg/torture/pr71792.C [new file with mode: 0644]