public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/41737] New: [omp] missing error for undeclared variable in a parallel region with default(none)
@ 2009-10-17 8:19 jv244 at cam dot ac dot uk
2009-10-17 8:20 ` [Bug libgomp/41737] " jv244 at cam dot ac dot uk
2009-10-17 8:27 ` jv244 at cam dot ac dot uk
0 siblings, 2 replies; 5+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-10-17 8:19 UTC (permalink / raw)
To: gcc-bugs
In the attached code, the last parallel region is default(none), but doesn't
declare np.This should generate an error instead (at least it does with cray
and intel compilers).
--
Summary: [omp] missing error for undeclared variable in a
parallel region with default(none)
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: libgomp
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jv244 at cam dot ac dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41737
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <bug-41737-4@http.gcc.gnu.org/bugzilla/>]
* [Bug libgomp/41737] [omp] missing error for undeclared variable in a parallel region with default(none)
[not found] <bug-41737-4@http.gcc.gnu.org/bugzilla/>
@ 2012-06-29 14:34 ` Joost.VandeVondele at mat dot ethz.ch
2012-06-29 18:46 ` Joost.VandeVondele at mat dot ethz.ch
1 sibling, 0 replies; 5+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2012-06-29 14:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41737
Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2012-06-29
--- Comment #3 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-06-29 14:34:00 UTC ---
simplified testcase, for 4.8:
INTEGER :: ip,np
!$omp parallel do default(none)
DO ip=0,np
ENDDO
!$omp end parallel do
END
while it is OK for ip to have no explicit attribute, I believe the standard
requires one for np. Intel ifort gives:
est.f90(3): error #6752: Since the OpenMP* DEFAULT(NONE) clause applies, the
PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be
explicitly specified for every variable. [NP]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgomp/41737] [omp] missing error for undeclared variable in a parallel region with default(none)
[not found] <bug-41737-4@http.gcc.gnu.org/bugzilla/>
2012-06-29 14:34 ` Joost.VandeVondele at mat dot ethz.ch
@ 2012-06-29 18:46 ` Joost.VandeVondele at mat dot ethz.ch
1 sibling, 0 replies; 5+ 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=41737
Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #4 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-06-29 18:46:13 UTC ---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46532
*** This bug has been marked as a duplicate of bug 46532 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-06-29 18:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-17 8:19 [Bug libgomp/41737] New: [omp] missing error for undeclared variable in a parallel region with default(none) jv244 at cam dot ac dot uk
2009-10-17 8:20 ` [Bug libgomp/41737] " jv244 at cam dot ac dot uk
2009-10-17 8:27 ` jv244 at cam dot ac dot uk
[not found] <bug-41737-4@http.gcc.gnu.org/bugzilla/>
2012-06-29 14:34 ` Joost.VandeVondele at mat dot ethz.ch
2012-06-29 18:46 ` Joost.VandeVondele at mat dot ethz.ch
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).