[Bug fortran/38838] BIND(C): Binding name expressions are wrongly rejected

2009-05-24 Thread fxcoudert at gcc dot gnu dot org


--- Comment #5 from fxcoudert at gcc dot gnu dot org  2009-05-24 20:07 
---


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


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


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



[Bug fortran/38838] BIND(C): Binding name expressions are wrongly rejected

2009-01-24 Thread mikael at gcc dot gnu dot org


--- Comment #4 from mikael at gcc dot gnu dot org  2009-01-24 21:04 ---
see also PR 36275.

(In reply to comment #3)
 I don't see why this is rejected
gfc_match_bind_c doesn't use gfc_match_init_expr. 
It matches the opening quotes, then calls gfc_match_name_C, then matches the
closing quotes.


-- 


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



[Bug fortran/38838] BIND(C): Binding name expressions are wrongly rejected

2009-01-14 Thread burnus at gcc dot gnu dot org


--- Comment #3 from burnus at gcc dot gnu dot org  2009-01-14 16:00 ---
The following seems to be rejected as well:

subroutine test() bind(c, name=1_name)

I don't see why this is rejected. The standard has:

C540 (R509) The scalar-char-initialization-expr shall be of default character
kind.

but this is fulfilled.


-- 


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