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

[Bug fortran/44660] [regression 4.4/4.5/4.6] ICE in resolve_equivalence()



------- Comment #8 from burnus at gcc dot gnu dot org  2010-06-25 06:20 -------
Comment 6 prints correctly the error that EQUIVALENCE is unexpected, but then
segfaults. Valgrind shows:

==11477== Invalid read of size 8
==11477==    at 0x52B7BB: resolve_types (resolve.c:12544)
==11477==    by 0x52504C: gfc_resolve (resolve.c:13040)

==11477== Invalid read of size 8
==11477==    at 0x52B84E: resolve_types (resolve.c:12554)
==11477==    by 0x52504C: gfc_resolve (resolve.c:13040)

That's in resolve_equivalence. Line 12544 is:
  last_ts = &eq->expr->symtree->n.sym->ts;
and line 12554 is
      e->ts = e->symtree->n.sym->ts;


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code


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


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