[Bug fortran/91963] Logical function does not simplify

2019-10-03 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91963 --- Comment #9 from Thomas Koenig --- (In reply to Thomas Koenig from comment #6) > Somewhat reduced: > > program main > integer, dimension(2), parameter :: n=[1,4] > logical, parameter :: a = logical(.true.,minval([(n(i),i=1,4)])) > end

[Bug fortran/91963] Logical function does not simplify

2019-10-02 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91963 --- Comment #8 from Steve Kargl --- On Wed, Oct 02, 2019 at 06:25:15PM +, sgk at troutmask dot apl.washington.edu wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91963 > > --- Comment #7 from Steve Kargl --- > On Wed, Oct 02, 2019 at

[Bug fortran/91963] Logical function does not simplify

2019-10-02 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91963 --- Comment #7 from Steve Kargl --- On Wed, Oct 02, 2019 at 06:10:48PM +, tkoenig at gcc dot gnu.org wrote: > > You're right, Steve, the problem lies in the simplification > of the implied DO loop (the error message is a catch-all > which

[Bug fortran/91963] Logical function does not simplify

2019-10-02 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91963 Thomas Koenig changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/91963] Logical function does not simplify

2019-10-02 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91963 --- Comment #5 from Steve Kargl --- On Wed, Oct 02, 2019 at 07:07:08AM -0700, Steve Kargl wrote: > On Wed, Oct 02, 2019 at 02:03:21PM +, kargl at gcc dot gnu.org wrote: > > --- Comment #3 from kargl at gcc dot gnu.org --- > > (In reply to

[Bug fortran/91963] Logical function does not simplify

2019-10-02 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91963 --- Comment #4 from Steve Kargl --- On Wed, Oct 02, 2019 at 02:03:21PM +, kargl at gcc dot gnu.org wrote: > --- Comment #3 from kargl at gcc dot gnu.org --- > (In reply to Richard Biener from comment #1) > > But is it valid fortran? > >

[Bug fortran/91963] Logical function does not simplify

2019-10-02 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91963 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---

[Bug fortran/91963] Logical function does not simplify

2019-10-02 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91963 --- Comment #2 from Thomas Koenig --- (In reply to Richard Biener from comment #1) > But is it valid fortran? I had to check, but yes. LOGICAL is an elemental type conversion function, which has only constant arguments, so it should be

[Bug fortran/91963] Logical function does not simplify

2019-10-02 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91963 Richard Biener changed: What|Removed |Added Keywords||rejects-valid --- Comment #1 from