[Bug libfortran/52431] Pass Fortran logical to C function

2012-02-29 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52431

--- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-29 
10:06:14 UTC ---
I think you forgot the value attribute like:
   logical(C_BOOL), value :: inbool


[Bug libfortran/52431] Pass Fortran logical to C function

2012-02-29 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52431

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID

--- Comment #2 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-29 
10:10:09 UTC ---
Your code is wrong.  You need either the value attribute on the Fortran side or
change the C side to take a pointer.