This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/60522] [4.7/4.8/4.9 Regression] WHERE construct causes an ICE in gfc_trans_where_2
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 14 Mar 2014 23:24:24 +0000
- Subject: [Bug fortran/60522] [4.7/4.8/4.9 Regression] WHERE construct causes an ICE in gfc_trans_where_2
- Auto-submitted: auto-generated
- References: <bug-60522-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60522
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Mikael Morin from comment #3)
> BLOCK constructs are not allowed inside WHERE constructs.
> Thus, the "common function optimization" should not create a BLOCK to hold
> the temporary variables, at least not inside WHERE.
Possible.
> Another possible fix, the following patch disables the optimization inside
> WHERE.
Not preferred, I'd like to continue the optimization.
I'll take a look.