This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43505] [4.5 Regression] type mismatch between an SSA_NAME and its symbol with -O3
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2010 11:39:34 -0000
- Subject: [Bug fortran/43505] [4.5 Regression] type mismatch between an SSA_NAME and its symbol with -O3
- References: <bug-43505-10374@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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