public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/105466] New: [OpenMP] declare simd(proc-name) rejected when proc-name = current procedure
@ 2022-05-03 14:57 burnus at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: burnus at gcc dot gnu.org @ 2022-05-03 14:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105466
           Summary: [OpenMP] declare simd(proc-name)  rejected when
                    proc-name = current procedure
           Product: gcc
           Version: 13.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: ---

Found in the OpenMP 5.2 Examples Document. The file is omp_5.2, however, that's
because of the linear clause. The issue of this PR also occurs for OpenMP 4.5
code:

   subroutine add_one2(p)
     !$omp declare simd(add_one2) linear(p: ref) simdlen(8)
     implicit none
     integer :: p

fails with:

./SIMD/sources/linear_modifier.1.f90:13:31:

   13 |    !$omp declare simd(add_one2) linear(p: ref) simdlen(8)
      |                               1
Error: Symbol ‘add_one2’ at (1) has already been host associated

but seems to be valid. Here 'add_one2' is both the proc-name in the declare
simd as the well as the procedure name in which the "declare simd" appears.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-03 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-03 14:57 [Bug fortran/105466] New: [OpenMP] declare simd(proc-name) rejected when proc-name = current procedure 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).