This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36275] Binding label can be any scalar char initialisation expression
- 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: 20 May 2008 16:51:21 -0000
- Subject: [Bug fortran/36275] Binding label can be any scalar char initialisation expression
- References: <bug-36275-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from burnus at gcc dot gnu dot org 2008-05-20 16:51 -------
The other problem mentioned in the thread is the following bogus warning:
procedure(stub), bind(C,name='cacosf') :: my_ACOS ! Compiles
1
Warning: Variable 'my_acos' at (1) may not be a C interoperable kind but it is
bind(c)
I think it appeared after 2008-05-01-Rev134843 and should be related to one of
the procedure patches. Test case:
module trig_sp
use ISO_C_BINDING
integer, parameter :: rkind = C_FLOAT
integer, parameter :: ckind = C_FLOAT_COMPLEX
abstract interface
function stub(z) bind(C)
import rkind, ckind
complex(ckind), value :: z
complex(ckind) stub
end function stub
end interface
procedure(stub), bind(C,name='cacosf') :: my_ACOS ! Compiles
end module trig_sp
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36275