------- Comment #9 from kargl at gcc dot gnu dot org 2009-12-29 18:58 ------- Some addition information from valgrind.
Error: Different shape for array assignment at (1) on dimension 1 (0 and 2) ==13911== Invalid read of size 8 ==13911== at 0x1C108F8: __gmpz_get_si (in /usr/local/lib/libgmp.so.8) ==13911== by 0x4B426F: compare_actual_formal (interface.c:1704) ==13911== by 0x4B52D7: gfc_procedure_use (interface.c:2407) ==13911== by 0x4F89AF: resolve_call (resolve.c:3045) ==13911== by 0x4FBFD2: resolve_code (resolve.c:8067) ==13911== by 0x4FD7CB: gfc_resolve_blocks (resolve.c:7722) ==13911== by 0x4FBE59: resolve_code (resolve.c:7943) ==13911== by 0x4FD93F: resolve_codes (resolve.c:12293) ==13911== by 0x4F1954: gfc_resolve (resolve.c:12320) ==13911== by 0x4E7C27: gfc_parse_file (parse.c:4198) ==13911== by 0x51B8C7: gfc_be_parse_file (f95-lang.c:239) ==13911== by 0x7FB635: toplev_main (toplev.c:1049) ==13911== Address 0x1 is not stack'd, malloc'd or (recently) free'd ==13911== homework-2.f90: At top level: homework-2.f90:8:0: internal compiler error: Segmentation fault: 11 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. ==13911== ==13911== HEAP SUMMARY: ==13911== in use at exit: 712,926 bytes in 2,347 blocks ==13911== total heap usage: 4,585 allocs, 2,238 frees, 1,218,623 bytes allocated ==13911== ==13911== LEAK SUMMARY: ==13911== definitely lost: 520 bytes in 14 blocks ==13911== indirectly lost: 0 bytes in 0 blocks ==13911== possibly lost: 18,256 bytes in 67 blocks ==13911== still reachable: 694,150 bytes in 2,266 blocks ==13911== suppressed: 0 bytes in 0 blocks ==13911== Rerun with --leak-check=full to see details of leaked memory -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36192