https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125016
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The diagnostics looks correct.
OpenMP (e.g. in OpenMP 5.2, [62:6-7] says:
"Unless otherwise specified, a variable that is part of another variable (as an
array element or a structure element) cannot be a variable list item, an
extended list item or locator list item."
or in [17:23-25]:
"A variable that is part of another variable (as an array element or a
structure element) cannot be made private independently of other components. If
a variable is
privatized, its components are also private."
t%re is a variable which is part of another variable (t in this case), and
I don't see anything that would specify otherwise for the reduction clause for
this case.