------- Comment #4 from pault at gcc dot gnu dot org 2010-03-24 11:39 ------- (In reply to comment #3)
> No, the checking complains that TREE_TYPE (hts_1) (the type of the > SSA name) is != TREE_TYPE (hts) (its symbol). That should never happen. Ah, OK. Interestingly, when HTS is declared assumed size or assumed shape, the ICE does not occur, as in PR41056. The inlining proceeds as far as calls to gintrp. If gridws is not use associated, gintrp is inlined too. I admit, however, that this is a distraction from the problem with hts. The difficulty must lie with the typing of address expressions in gfortran. I'll have a further think about it tonight. Any advice that you can give would be gratefully received. The critical bit is in trans.c:gfc_build_addr_expr. Cheers Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43505