public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/105332] New: [OpenMP] Remove bogus 'ALIGNED clause must be POINTER, ALLOCATABLE, Cray pointer or C_PTR'
@ 2022-04-21  9:08 burnus at gcc dot gnu.org
  2022-07-29  6:49 ` [Bug fortran/105332] " burnus at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: burnus at gcc dot gnu.org @ 2022-04-21  9:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105332
           Summary: [OpenMP] Remove bogus 'ALIGNED clause must be POINTER,
                    ALLOCATABLE, Cray pointer or C_PTR'
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: openmp, rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

GCC rejects code with
  'ALIGNED clause must be POINTER, ALLOCATABLE, Cray pointer or C_PTR'

but that restriction is not in OpenMP 5.1.


(The restriction did get into OpenMP 5.2 during the syntax restructuring, but
it
seems to be an accidental change. On the spec side is tracked in
https://github.com/OpenMP/spec/issues/3279 (non-public) – and I expect that
this
restriction gets deleted for the next TR (and then OpenMP 6.0).)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug fortran/105332] [OpenMP] Remove bogus 'ALIGNED clause must be POINTER, ALLOCATABLE, Cray pointer or C_PTR'
  2022-04-21  9:08 [Bug fortran/105332] New: [OpenMP] Remove bogus 'ALIGNED clause must be POINTER, ALLOCATABLE, Cray pointer or C_PTR' burnus at gcc dot gnu.org
@ 2022-07-29  6:49 ` burnus at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: burnus at gcc dot gnu.org @ 2022-07-29  6:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Cf. also https://github.com/OpenMP/spec/pull/3318 (non public pull request).

New wording for ALIGN clause is that it takes an ARRAY but there are no
additional restrictions.

This applies both to 'declare simd' and to 'simd'.

In 5.1, the restrictions for the 'aligned' clause differed between 'simd' and
'declare simd'; 5.2 unified the restrictions; thus, introducing the issue of
comment 0.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-29  6:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21  9:08 [Bug fortran/105332] New: [OpenMP] Remove bogus 'ALIGNED clause must be POINTER, ALLOCATABLE, Cray pointer or C_PTR' burnus at gcc dot gnu.org
2022-07-29  6:49 ` [Bug fortran/105332] " burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).