This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: testcase help for fortran-experiments branch


i think that i've fixed the problem with testing the C kind for validity
with the type it's used for.  for example, the following code works:

module kind_tests_2
  use, intrinsic :: iso_c_binding

  integer, parameter :: myFKind = c_float
  real(myFKind), bind(c) :: myF
end module kind_tests_2

i've also tested it across modules to make sure the info is being put into
the mod files correctly.  the following also works:

module my_kinds
  use, intrinsic :: iso_c_binding
  integer, parameter :: myFKind = c_float
end module my_kinds

module my_module
  use my_kinds
  real(myFKind), bind(c) :: myF
end module my_module

i created two new testcases for these and will include them when i submit
my next patch (which will hopefully be soon).

Chris

> On Fri, Jan 12, 2007 at 12:36:17PM -0700, Christopher D. Rickett wrote:
>>
>> next i plan on looking at the errors/warnings issued with determining
>> whether a kind is C interoperable or not.
>>
>
> Chris,
>
> I plan to look at this and your other emails submission
> this weekend.  Thanks for taking on the bear of a feature.
>
> --
> Steve
>


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