openmp: Fix up handling of DECL_OMP_PRIVATIZED_MEMBER for bit-fields [PR95063]
authorJakub Jelinek <jakub@redhat.com>
Tue, 12 May 2020 08:00:32 +0000 (10:00 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 12 May 2020 08:05:27 +0000 (10:05 +0200)
commit99b0c9ec47d563d1f780cb678c04d37c9835440f
treeb7b9cd82ea49c3c7dea130f968b12ed5cf84991f
parent4c0283b9ad75b128b79c507d78d678123fe9f471
openmp: Fix up handling of DECL_OMP_PRIVATIZED_MEMBER for bit-fields [PR95063]

The r11-15 change broke this testcase, as it now asserts type is equal to
the type of the DECL_VALUE_EXPR, but for DECL_OMP_PRIVATIZED_MEMBER artificial
vars mapping to bitfields it wasn't.  Fixed by changing the
DECL_OMP_PRIVATIZED_MEMBER var type in that case.

2020-05-12  Jakub Jelinek  <jakub@redhat.com>

PR c++/95063
* pt.c (tsubst_decl): Deal with DECL_OMP_PRIVATIZED_MEMBER for
a bit-field.

* g++.dg/gomp/pr95063.C: New test.
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr95063.C [new file with mode: 0644]