This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66377] [F95] Wrong-code with equivalenced array in module
- From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 Jun 2015 00:00:05 +0000
- Subject: [Bug fortran/66377] [F95] Wrong-code with equivalenced array in module
- Auto-submitted: auto-generated
- References: <bug-66377-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66377
--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Tue, Jun 02, 2015 at 11:37:27PM +0000, sgk at troutmask dot
apl.washington.edu wrote:
>
> OK. Digging a little deeper. The problem is in
> module.c (load_equiv). There is a section of code
> (lines 4526-4534) that tries to avoid loading unused
> equivalenced symbols. If those lines are commented
> out, the original code works.
>
Run gmake check-gfortran with the commented out
code does not cause any regressions. The question
I guess is this some attempt at an optimization.