aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-07-21 09:38:59 +0200
committerJakub Jelinek <jakub@redhat.com>2021-07-21 09:38:59 +0200
commitaea199f96cf116ba4c81426207acde371556610c (patch)
tree0ee5e809cce7042bed7dee5e75f5f361f00808c5 /gcc/gimplify.c
parentb3d4011ba10275fbd5d6ec5a16d5aaebbdfb5d3c (diff)
downloadgcc-aea199f96cf116ba4c81426207acde371556610c.zip
gcc-aea199f96cf116ba4c81426207acde371556610c.tar.gz
gcc-aea199f96cf116ba4c81426207acde371556610c.tar.bz2
c++: Ensure OpenMP reduction with reference type references complete type [PR101516]
The following testcase ICEs because we haven't verified if reduction decl has reference type that TREE_TYPE of the reference is a complete type, require_complete_type on the decl doesn't ensure that. 2021-07-21 Jakub Jelinek <jakub@redhat.com> PR c++/101516 * semantics.c (finish_omp_reduction_clause): Also call complete_type_or_else and return true if it fails. * g++.dg/gomp/pr101516.C: New test.
Diffstat (limited to 'gcc/gimplify.c')
0 files changed, 0 insertions, 0 deletions