[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-13 Thread jakub at gcc dot gnu dot org
--- Comment #14 from jakub at gcc dot gnu dot org 2010-05-13 13:22 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-13 Thread jakub at gcc dot gnu dot org
--- Comment #13 from jakub at gcc dot gnu dot org 2010-05-13 12:39 --- Subject: Bug 44036 Author: jakub Date: Thu May 13 12:39:17 2010 New Revision: 159365 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159365 Log: PR fortran/44036 * openmp.c (resolve_omp_clauses

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-13 Thread jakub at gcc dot gnu dot org
--- Comment #12 from jakub at gcc dot gnu dot org 2010-05-13 12:36 --- Subject: Bug 44036 Author: jakub Date: Thu May 13 12:35:52 2010 New Revision: 159363 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159363 Log: PR fortran/44036 * openmp.c (resolve_omp_clauses

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-13 Thread jakub at gcc dot gnu dot org
--- Comment #11 from jakub at gcc dot gnu dot org 2010-05-13 12:03 --- Subject: Bug 44036 Author: jakub Date: Thu May 13 12:02:50 2010 New Revision: 159361 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159361 Log: PR fortran/44036 * openmp.c (resolve_omp_clauses

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-12 Thread jakub at gcc dot gnu dot org
--- Comment #10 from jakub at gcc dot gnu dot org 2010-05-12 15:27 --- Created an attachment (id=20649) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20649&action=view) locus follow-up Follow-up patch to fix up the locus. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44036

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-12 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2010-05-12 15:25 --- Created an attachment (id=20648) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20648&action=view) gcc46-pr44036.patch Updated patch which implements that. I've split off the locus changes to a separate follow-u

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-12 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2010-05-12 15:01 --- Seems dummy procedures are already in F95 and therefore something that OpenMP 3.0 should take into account. So probably for them it would be better to keep rejecting them in the clause lists and ensure they aren't rej

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-12 Thread longb at cray dot com
--- Comment #7 from longb at cray dot com 2010-05-12 14:34 --- For what it's worth, the Cray compiler produces this message for the test code: !$OMP shared (a,n,f) ^ ftn-1473 crayftn: ERROR DP, File = test.f90, Line = 13, Column = 19 Object F must be a variable to

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-12 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2010-05-12 08:29 --- Created an attachment (id=20644) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20644&action=view) gcc46-pr44036.patch Only very lightly tested patch. 1) allows dummy procedures and procedure pointers, disallows

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-12 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2010-05-12 08:13 --- (In reply to comment #4) > Using the Intel Fortran Compiler 11.1 (20090630), one gets: > test.f90(10): error #7655: A variable is required in this OpenMP context. Ditto for procedure pointers. > Sun Studio 12 an

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-12 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2010-05-12 07:52 --- For information: Pathscale 3.2.99 and 3.9.99 and Portland pgf90 10.1-0 compile it without showing an error/warning. Using the Intel Fortran Compiler 11.1 (20090630), one gets: test.f90(10): error #6429: This name

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-12 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-05-12 07:00 --- I'm not convinced that external (without pointer attribute) objects are allowed in the shared etc. clause lists. The OpenMP 3.0 standard says that a list item is a variable name or common block name. And the definiti

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-07 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2010-05-08 01:48 --- Jakub, Is the patch in comment #2 correct? If yes, I'll follow up with a ChangeLog and dejagnu-ify the submitted code for the testsuite. -- kargl at gcc dot gnu dot org changed: What|Removed

[Bug fortran/44036] I can't declare an external function in an OMP shared statement.

2010-05-07 Thread kargl at gcc dot gnu dot org
--- Comment #1 from kargl at gcc dot gnu dot org 2010-05-08 01:44 --- Created an attachment (id=20600) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20600&action=view) Allow external entities in a default(none) This patch allows the code to compile. I, however, do not know if thi