gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs with base of reference...
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Jun 2016 19:03:05 +0000 (21:03 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 16 Jun 2016 19:03:05 +0000 (21:03 +0200)
commit283635f9bd93d373b93efc1f6ffdd215f93be5fe
tree5e58a24aa0c773a550f62bd0edd6c36e5155b9cc
parent4389cf2551f89c0e060479396786f74aae14d3b2
gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs with base of reference to struct.

* gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
with base of reference to struct.

* parser.c (cp_parser_omp_var_list_no_open): Call
convert_from_reference before cp_parser_postfix_dot_deref_expression.
* semantics.c (finish_omp_clauses): Don't ICE when
processing_template_decl when checking for bitfields and unions.
Look through REFERENCE_REF_P as base of COMPONENT_REF.

* testsuite/libgomp.c++/target-20.C: New test.

From-SVN: r237538
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/target-20.C [new file with mode: 0644]