This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/84791] ICE with broken OpenMP reduction clause


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar 30 18:38:36 2018
New Revision: 258981

URL: https://gcc.gnu.org/viewcvs?rev=258981&root=gcc&view=rev
Log:
        PR c++/84791
        * semantics.c (finish_omp_reduction_clause): If
        OMP_CLAUSE_REDUCTION_PLACEHOLDER is error_mark_node, return true
        even if processing_template_decl.

        * g++.dg/gomp/pr84791.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gomp/pr84791.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]