------- Comment #14 from janus at gcc dot gnu dot org 2009-09-10 18:29 -------
> If trunk bootstraps and regtests, commit as "obvious". As I said, I get two ICEs in the testsuite with the patch from comment #8. Backtrace for typebound_operator_3.f03: #0 0x000000000050de83 in generic_sym (sym=0x0) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:940 #1 0x000000000050e05d in procedure_kind (sym=0x0) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:994 #2 0x0000000000512465 in resolve_call (c=0x28f87d0) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:3146 #3 0x000000000051a124 in resolve_code (code=0x28f87d0, ns=0x28d9a60) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:7239 #4 0x0000000000522ee4 in resolve_codes (ns=0x28d9a60) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:11449 #5 0x0000000000522fcf in gfc_resolve (ns=0x28d9a60) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:11476 #6 0x00000000005067ae in gfc_parse_file () at /home/jweil/gcc45/trunk/gcc/fortran/parse.c:3992 #7 0x000000000054225c in gfc_be_parse_file (set_yydebug=0) at /home/jweil/gcc45/trunk/gcc/fortran/f95-lang.c:239 #8 0x000000000099e719 in compile_file () at /home/jweil/gcc45/trunk/gcc/toplev.c:1038 #9 0x00000000009a09c4 in do_compile () at /home/jweil/gcc45/trunk/gcc/toplev.c:2382 #10 0x00000000009a0a85 in toplev_main (argc=2, argv=0x7fff9d3f7808) at /home/jweil/gcc45/trunk/gcc/toplev.c:2424 #11 0x00000000005be403 in main (argc=2, argv=0x7fff9d3f7808) at /home/jweil/gcc45/trunk/gcc/main.c:35 And a similar one for typebound_operator_4.f03: #0 0x000000000050de83 in generic_sym (sym=0x0) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:940 #1 0x000000000050e05d in procedure_kind (sym=0x0) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:994 #2 0x0000000000512465 in resolve_call (c=0x2552c20) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:3146 #3 0x000000000051a124 in resolve_code (code=0x2552c20, ns=0x2551b80) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:7239 #4 0x0000000000522ee4 in resolve_codes (ns=0x2551b80) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:11449 #5 0x0000000000522e01 in resolve_codes (ns=0x2548420) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:11439 #6 0x0000000000522fcf in gfc_resolve (ns=0x2548420) at /home/jweil/gcc45/trunk/gcc/fortran/resolve.c:11476 #7 0x00000000005067ae in gfc_parse_file () at /home/jweil/gcc45/trunk/gcc/fortran/parse.c:3992 #8 0x000000000054225c in gfc_be_parse_file (set_yydebug=0) at /home/jweil/gcc45/trunk/gcc/fortran/f95-lang.c:239 #9 0x000000000099e719 in compile_file () at /home/jweil/gcc45/trunk/gcc/toplev.c:1038 #10 0x00000000009a09c4 in do_compile () at /home/jweil/gcc45/trunk/gcc/toplev.c:2382 #11 0x00000000009a0a85 in toplev_main (argc=2, argv=0x7fff2da61e78) at /home/jweil/gcc45/trunk/gcc/toplev.c:2424 #12 0x00000000005be403 in main (argc=2, argv=0x7fff2da61e78) at /home/jweil/gcc45/trunk/gcc/main.c:35 At present I fail to see the reason for these, but it seems something goes wrong in resolve_call. Daniel, do you have an idea? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41242