Re: [patch, fortran] Fix PR 87673, rejects-valid

2019-03-11 Thread Steve Kargl
On Sun, Mar 10, 2019 at 10:36:48PM +0100, Thomas Koenig wrote: > Am 10.03.19 um 22:12 schrieb Thomas Koenig: > > > You're probably right, I will fix this.  Ugh... > > OK, so here is the updated test case, without the copyright stuff. > > OK for trunk now? :-) > Yes. Thanks for patch. --

Re: [patch, fortran] Fix PR 87673, rejects-valid

2019-03-10 Thread Thomas Koenig
Am 10.03.19 um 22:12 schrieb Thomas Koenig: You're probably right, I will fix this.  Ugh... OK, so here is the updated test case, without the copyright stuff. OK for trunk now? :-) Regards Thomas ! { dg-do compile } ! PR 87673 - used to cause errors about non-pure functions.

Re: [patch, fortran] Fix PR 87673, rejects-valid

2019-03-10 Thread Thomas Koenig
Am 10.03.19 um 21:15 schrieb Steve Kargl: On Sun, Mar 10, 2019 at 09:04:18PM +0100, Thomas Koenig wrote: ! { dg-do compile } ! PR 87673 - used to cause errors about non-pure functions. ! A fragment from Richard Townsend's iso_varying_string, as modified by ! Ian Harvey to include F2003

Re: [patch, fortran] Fix PR 87673, rejects-valid

2019-03-10 Thread Steve Kargl
On Sun, Mar 10, 2019 at 09:04:18PM +0100, Thomas Koenig wrote: > ! { dg-do compile } > ! PR 87673 - used to cause errors about non-pure functions. > ! A fragment from Richard Townsend's iso_varying_string, as modified by > ! Ian Harvey to include F2003 language capabilities. For copyright

[patch, fortran] Fix PR 87673, rejects-valid

2019-03-10 Thread Thomas Koenig
Hello world, the attached patch fixes a 7/8/9 regression by removing the call to gfc_resovle_expr during matching. It turned out that gfc_resolve_expr depends on some conditions that are not yet met during the matching phase. Fortunately, the bug that this originally fixed (PR 82049) has been