This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/36275] Binding label can be any scalar char initialisation expression



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]