https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122077
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is invalid.
A reduction clause with the inscan reduction-modifier may only appear on a
worksharing-loop construct, a worksharing-loop SIMD construct, a simd
construct, a parallel worksharing-loop construct or a parallel worksharing-loop
SIMD construct.
Unlike many other places, this doesn't talk about constructs combined with
worksharing-loop or worksharing-loop SIMD, but explicitly lists the constructs
which it can be used on.