This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/19926] Incorrect rank with PARAMETER and array element.
- From: "eedelman at acclab dot helsinki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2005 09:39:13 -0000
- Subject: [Bug fortran/19926] Incorrect rank with PARAMETER and array element.
- References: <20050212162405.19926.sgk@troutmask.apl.washington.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From eedelman at acclab dot helsinki dot fi 2005-06-11 09:39 -------
(In reply to comment #4)
> I tested the attached patch, which is equivalent to Erik's
> patch with the exception that I remove an unnecesary \n in
> the conditional of the if ().
>
> I've also attached a test case. If no one has any objections,
> I'll apply the patch after my current regression test completes.
Just to elaborate on what I meant with suspecting thet the patch only hides the
problem instead of solving it.
One thing that slightly worries my is, why isn't e->rank zero by itself? If you
make string_comp in the fortran code a PROGRAM instead of SUBROUTINE, e->rank
_is_ zero (even without the patch). I feel there is something fishy going on,
and I don't feel completely comfortable with the patch before I know what it is.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19926