This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32365] New: OpenMP: Better error message for specification statement in executable section
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2007 08:51:56 -0000
- Subject: [Bug fortran/32365] New: OpenMP: Better error message for specification statement in executable section
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
subroutine test
use omp_lib
implicit none
integer, parameter :: NT = 4
integer :: a
save
a = 1
!$omp threadprivate(a)
end subroutine test
gfortran:
Error: Unexpected !$OMP THREADPRIVATE statement at (1)
Intel:
Error: A specification statement cannot appear in the executable section.
sunf95:
ERROR: Compiler directive THREADPRIVATE must appear before the first executable
statement.
--
Summary: OpenMP: Better error message for specification statement
in executable section
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic, openmp
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32365