public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/46532] New: [OMP] missing error for loop bounds missing an attribute
@ 2010-11-18  6:21 Joost.VandeVondele at pci dot uzh.ch
  2010-11-18 12:58 ` [Bug fortran/46532] " burnus at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joost.VandeVondele at pci dot uzh.ch @ 2010-11-18  6:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46532

           Summary: [OMP] missing error for loop bounds missing an
                    attribute
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Joost.VandeVondele@pci.uzh.ch


IMPLICIT NONE
INTEGER :: i,n
!'i' is implicitly private, but an attribute must be specified for n
!$omp parallel do default(none)
DO i=1,n

ENDDO
END


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

* [Bug fortran/46532] [OMP] missing error for loop bounds missing an attribute
  2010-11-18  6:21 [Bug fortran/46532] New: [OMP] missing error for loop bounds missing an attribute Joost.VandeVondele at pci dot uzh.ch
@ 2010-11-18 12:58 ` burnus at gcc dot gnu.org
  2012-06-29 18:46 ` Joost.VandeVondele at mat dot ethz.ch
  2023-04-08 18:53 ` anlauf at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2010-11-18 12:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46532

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid, openmp
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.11.18 12:56:26
                 CC|                            |burnus at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-11-18 12:56:26 UTC ---
Intel has:

error #6752: Since the OpenMP DEFAULT(NONE) clause applies, the PRIVATE,
SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be explicitly
specified for every variable.   [N]

>From the OpenMP 3.0 specification:

"The default(none) clause requires that each variable that is referenced in the
construct, and that does not have a predetermined data-sharing attribute, must
have its data-sharing attribute explicitly determined by being listed in a
data-sharing attribute clause." ("2.9.3.1 default clause")

Cf. also "2.9.1.1 Data-sharing Attribute Rules for Variables Referenced in a
Construct", which lists the variables which have "predetermined data-sharing
attributes"; in the example, it only affects "i" ("The loop iteration
variable(s) in the associated do-loop(s) of a do or parallel do construct
is(are) private.")


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

* [Bug fortran/46532] [OMP] missing error for loop bounds missing an attribute
  2010-11-18  6:21 [Bug fortran/46532] New: [OMP] missing error for loop bounds missing an attribute Joost.VandeVondele at pci dot uzh.ch
  2010-11-18 12:58 ` [Bug fortran/46532] " burnus at gcc dot gnu.org
@ 2012-06-29 18:46 ` Joost.VandeVondele at mat dot ethz.ch
  2023-04-08 18:53 ` anlauf at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2012-06-29 18:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46532

--- Comment #2 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-06-29 18:46:13 UTC ---
*** Bug 41737 has been marked as a duplicate of this bug. ***


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

* [Bug fortran/46532] [OMP] missing error for loop bounds missing an attribute
  2010-11-18  6:21 [Bug fortran/46532] New: [OMP] missing error for loop bounds missing an attribute Joost.VandeVondele at pci dot uzh.ch
  2010-11-18 12:58 ` [Bug fortran/46532] " burnus at gcc dot gnu.org
  2012-06-29 18:46 ` Joost.VandeVondele at mat dot ethz.ch
@ 2023-04-08 18:53 ` anlauf at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-04-08 18:53 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #3 from anlauf at gcc dot gnu.org ---
On mainline I get:

    4 | !$omp parallel do default(none)
      |                               ^
Error: 'n' not specified in enclosing 'parallel'

but I don't get this error on 12-branch or earlier.  Fixed recently?

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

end of thread, other threads:[~2023-04-08 18:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-18  6:21 [Bug fortran/46532] New: [OMP] missing error for loop bounds missing an attribute Joost.VandeVondele at pci dot uzh.ch
2010-11-18 12:58 ` [Bug fortran/46532] " burnus at gcc dot gnu.org
2012-06-29 18:46 ` Joost.VandeVondele at mat dot ethz.ch
2023-04-08 18:53 ` anlauf 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).