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

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> ---
This is unclear and I guess needs discussion in OpenMP language committee. 
When a variable is only mentioned in aligned clause (note, not in its alignment
expression if any), but not really used anywhere, I don't think it actually
needs the variable to be referenced on the outer construct, similarly how e.g.
private(c) on simd or for and default(none) on parallel not combined with it is
not an error.
If you actually use the variable, sure, that is different.

Reply via email to