This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29397] Constant logical expression with parameter array
- 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: 13 Apr 2007 21:26:00 -0000
- Subject: [Bug fortran/29397] Constant logical expression with parameter array
- References: <bug-29397-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pault at gcc dot gnu dot org 2007-04-13 22:26 -------
INTEGER :: K(3)=1
INTEGER, PARAMETER :: J(3)=(/1,2,0/)
write(6,*) MAXLOC(K,J<1)
END
works just fine. I would say that the problem is that the initializtion
expression is never getting turned into an EXPR_ARRAY.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29397