------- Comment #1 from burnus at gcc dot gnu dot org 2008-10-10 11:26 -------
I might have done something wrong, but the program below fails here with a
memory-access error not only with 4.4 but also with 4.3. Additionally, the
program is rejected with 4.1 and 4.2 - and with NAG f95, ifort and g95:
Error: Symbol 'of01_data' referenced at (1) not found in module
'hsl_of01_integer'
Valgrind shows the following. I tried to debug it with gdb, but gdb coredumps
==24051== Invalid read of size 1
==24051== at 0x4558A8: read_module (module.c:3965)
==24051== by 0x456D9B: gfc_use_module (module.c:5235)
==24051== by 0x45D6A4: accept_statement (parse.c:1448)
==24051== by 0x45E1C1: parse_spec (parse.c:2433)
That is:
/* Identical derived types are not ambiguous and will be rolled up
later. */
if (st_sym->attr.flavor == FL_DERIVED
&& rsym->attr.flavor == FL_DERIVED
&& gfc_compare_derived_types (st_sym, rsym))
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2008-10-10 11:26:20
date| |
Summary|Fortran module overloading |[4.3/4.4 Regression] Fortran
|regression |module overloading
| |regression
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37794