https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71792
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:d82823454355f9d24dba51316145f84ae8d34ff7 commit r12-5765-gd82823454355f9d24dba51316145f84ae8d34ff7 Author: Andrew Pinski <apin...@marvell.com> Date: Fri Dec 3 08:13:32 2021 +0000 [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.