https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101516

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:17a947ee50f8b8e01022a31bc69729f2dc563dd8

commit r10-10636-g17a947ee50f8b8e01022a31bc69729f2dc563dd8
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Wed Jul 21 09:38:59 2021 +0200

    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  <ja...@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.

    (cherry picked from commit aea199f96cf116ba4c81426207acde371556610c)

Reply via email to