[Bug fortran/43505] [4.5 Regression] type mismatch between an SSA_NAME and its symbol with -O3

pault at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 24 11:39:00 GMT 2010



------- 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



More information about the Gcc-bugs mailing list