This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56440] Compiler crash for f90 with C-binded subroutine name, which is equals to module name
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Feb 2013 08:47:00 +0000
- Subject: [Bug fortran/56440] Compiler crash for f90 with C-binded subroutine name, which is equals to module name
- Auto-submitted: auto-generated
- References: <bug-56440-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56440
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-02-25
CC| |burnus at gcc dot gnu.org
Ever Confirmed|0 |1
Known to fail| |4.5.3, 4.8.0
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-02-25 08:47:00 UTC ---
Confirmed.
Fails with GCC 4.5/4.6/4.7/4.8 in gfc_verify_binding_labels:
bind_c_sym = gfc_find_gsymbol (gfc_gsym_root, sym->binding_label);
if (bind_c_sym != NULL
&& strcmp (bind_c_sym->name, sym->binding_label) == 0)
{
if (sym->attr.if_source == IFSRC_DECL
&& (bind_c_sym->type != GSYM_SUBROUTINE
&& bind_c_sym->type != GSYM_FUNCTION)
&& ((sym->attr.contained == 1
&& strcmp (bind_c_sym->sym_name, sym->name) != 0)
^^^^^^^^^^^^^^^^^^^^
Here, bind_c_sym->sym_name == NULL.