This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/85507] [8/9 Regression] ICE in gfc_dep_resolver, at fortran/dependency.c:2258
- From: "vehre at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 29 Apr 2018 12:37:10 +0000
- Subject: [Bug fortran/85507] [8/9 Regression] ICE in gfc_dep_resolver, at fortran/dependency.c:2258
- Auto-submitted: auto-generated
- References: <bug-85507-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85507
--- Comment #5 from vehre at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #4)
> > The ICE is gone if I revert the change in dependency.c from r259385.
>
> This regtests cleanly.
Well, it regtests cleanly, but produces incorrect code. The detection, that
x[2] and x reference the same variable and may require a temporary in the
assignment (at least when we are on image 2) is not assessed correctly.