https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95063
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Reduced testcase that is valid: template <typename T> struct S { T a:12; S () : a(0) { #pragma omp for linear(a) for (int k = 0; k < 64; ++k) a++; } }; S<int> s; I guess this boils down to what type should the artificial DECL_OMP_PRIVATIZED_MEMBER vars have for bit-fields, without it being a template or without the bitfield type being a dependent type omp_privatize_field would create the bitfield type, which is I think right, the artificial var just stands for the COMPONENT_REF of this->bit_field (just will have to check what exactly we do during expansion with that).