public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106566] [OpenMP] declare simd fails with with bogus "already been host associated" for module procedures Date: Tue, 09 Aug 2022 18:28:48 +0000 [thread overview] Message-ID: <bug-106566-4-ynVOaapIEZ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-106566-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106566 Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Summary|[OpenMP] |[OpenMP] declare simd fails | |with with bogus "already | |been host associated" for | |module procedures --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- Additionally, the following is not diagnosed – at least not for this example. "For Fortran, a declarative directive must appear after any USE, IMPORT, and IMPLICIT statements in a declarative context." (The original example shows this issue. This is reported by other compilers and is being fixed on the OpenMP examples side.) Example - *FAILS* ("has already been host associated") but is *VALID* module m integer, parameter :: NN = 1023 integer :: a(NN) contains subroutine add_one2(p) implicit none ! <<<< valid - must before declare !$omp declare simd(add_one2) linear(p: ref) simdlen(8) integer :: p p = p + 1 end subroutine end module The following is *COMPILING* - as there is no MODULE: subroutine add_one2(p) !$omp declare simd(add_one2) linear(p: ref) simdlen(8) implicit none ! <<<< invalid because after declare. integer :: p p = p + 1 end subroutine Note: This example is on purpose invalid as 'implicit none' has been moved after 'omp declare'. Otherwise, it would be valid.
next prev parent reply other threads:[~2022-08-09 18:28 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-08-08 20:35 [Bug fortran/106566] New: [OpenMP] burnus at gcc dot gnu.org 2022-08-09 18:28 ` burnus at gcc dot gnu.org [this message] 2022-08-16 8:16 ` [Bug fortran/106566] [OpenMP] declare simd fails with with bogus "already been host associated" for module procedures burnus at gcc dot gnu.org 2022-08-16 15:26 ` burnus at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-106566-4-ynVOaapIEZ@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).