[Bug fortran/65975] !$ is not recognized as a comment when -fopenmp flag is used

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat May 2 12:11:00 GMT 2015


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It is rejected the same way if you just type
external, logical:: foobar
end
If you write instead
external foobar
logical:: foobar
end
it is accepted.  I think Fortran95 would use INTERFACE instead (or MODULE),
dunno where the external, type:: form would come from.  CCing Tobias.
!$ external omp_in_parallel
!$ logical:: omp_in_parallel
!$ external omp_get_thread_num
!$ integer:: omp_get_thread_num
or
!$ include 'omp_lib.h'
will work.



More information about the Gcc-bugs mailing list