[Bug fortran/45190] Compile-time error on valid code: can't convert TYPE(_gfortran_iso_c_binding_c_ptr) to TYPE(c_ptr)

2010-08-05 Thread kargl at gcc dot gnu dot org


--- Comment #1 from kargl at gcc dot gnu dot org  2010-08-05 15:46 ---
The problem also occurs with 4.6.0.

Note, if you remove the ', only : c_ptr' in NAG_J_TYPES,
the code compiles and produces 

laptop:kargl[214] gfc4x -o z tr.f90
laptop:kargl[215] ./z
 C_ASSOCIATED = T
 ASSOCIATED = T

So, there appears to be a problem with using an ONLY clause
with ISO C binding.


-- 

kargl at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2010-08-05 15:46:24
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45190



[Bug fortran/45190] Compile-time error on valid code: can't convert TYPE(_gfortran_iso_c_binding_c_ptr) to TYPE(c_ptr)

2010-08-05 Thread dominiq at lps dot ens dot fr


--- Comment #2 from dominiq at lps dot ens dot fr  2010-08-05 16:03 ---
 The problem also occurs with 4.6.0.

As well as with 4.4.4.

Note that an other pr related to the use of ONLY (pr44702) has been fixed by
Tobias Burnus: I CCed him.


-- 

dominiq at lps dot ens dot fr changed:

   What|Removed |Added

 CC||burnus at gcc dot gnu dot
   ||org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45190



[Bug fortran/45190] Compile-time error on valid code: can't convert TYPE(_gfortran_iso_c_binding_c_ptr) to TYPE(c_ptr)

2010-08-05 Thread mikael at gcc dot gnu dot org


--- Comment #3 from mikael at gcc dot gnu dot org  2010-08-05 17:51 ---
I think it is the same as pr37829.

*** This bug has been marked as a duplicate of 37829 ***


-- 

mikael at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45190