This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/39427] F2003: Procedures with same name as types/type constructors
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 May 2010 19:55:36 -0000
- Subject: [Bug fortran/39427] F2003: Procedures with same name as types/type constructors
- References: <bug-39427-15301@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from burnus at gcc dot gnu dot org 2010-05-25 19:55 -------
(In reply to comment #14)
> Created an attachment (id=20714)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20714&action=view) [edit]
In module.c's import_iso_c_binding_module, one needs to replace:
local_name = gfc_get_string ("%s@", u->local_name);
by
local_name = (u->local_name[0] != '\0')
? gfc_get_string ("%s@", u->local_name) : NULL;
I now will try the other approach of using ns->derived_types to see whether the
code will be cleaner.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39427