$ gfortran -fwhole-file gfortran.dg/global_references_1.f90

[... some valid errors ...]
gfortran.dg/global_references_1.f90:9:0: internal compiler error: Segmentation
fault


==24437== Invalid read of size 8
==24437==    at 0x51190F: resolve_global_procedure (resolve.c:1844)
==24437==    by 0x51304D: gfc_resolve_expr (resolve.c:2597)
==24437==    by 0x51BE52: resolve_code (resolve.c:8030)
==24437==    by 0x51D952: resolve_codes (resolve.c:12371)
==24437==    by 0x511584: gfc_resolve (resolve.c:12398)
==24437==    by 0x506929: gfc_parse_file (parse.c:4029)
==24437==    by 0x53C097: gfc_be_parse_file (f95-lang.c:239)
==24437==    by 0x8253EB: toplev_main (toplev.c:1053)
==24437==    by 0x5EB3BDC: (below main) (in /lib64/libc-2.11.1.so)
==24437==  Address 0x0 is not stack'd, malloc'd or (recently) free'd


-- 
           Summary: [-fwhole-file] ICE segfault for global_references_1.f90
                    (invalid code)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to