Re: [PATCH] Fix handling of arguments in statement functions

2018-02-11 Thread Steve Kargl
On Sun, Feb 11, 2018 at 08:34:05AM -0800, Steve Kargl wrote: > On Sun, Feb 11, 2018 at 01:48:10PM +0100, Dominique d'Humières wrote: > > Hi Steve, > > > > With your patch applied to revision r257559, I get the following failures > > > >

Re: [PATCH] Fix handling of arguments in statement functions

2018-02-11 Thread Steve Kargl
On Sun, Feb 11, 2018 at 01:48:10PM +0100, Dominique d'Humières wrote: > Hi Steve, > > With your patch applied to revision r257559, I get the following failures > > /opt/gcc/p_work/gcc/testsuite/gfortran.dg/statement_function_3.f:5:72: > Warning: Obsolescent feature: Statement function at (1) >

Re: [PATCH] Fix handling of arguments in statement functions

2018-02-11 Thread Dominique d'Humières
Hi Steve, With your patch applied to revision r257559, I get the following failures /opt/gcc/p_work/gcc/testsuite/gfortran.dg/statement_function_3.f:5:72: Warning: Obsolescent feature: Statement function at (1) /opt/gcc/p_work/gcc/testsuite/gfortran.dg/statement_function_3.f:3:24: Error:

Re: [PATCH] Fix handling of arguments in statement functions

2018-02-10 Thread Steve Kargl
On Sat, Feb 10, 2018 at 09:46:57AM -0800, Steve Kargl wrote: > > PR fortran/35299 > * gfortran.dg/statement_function_3.f: New test. This patch should be credited to FX. I've added 2018-02-10 Francois-Xavier Coudert to the ChangeLog entry. -- Steve

[PATCH] Fix handling of arguments in statement functions

2018-02-10 Thread Steve Kargl
All, The attach patch address 3 issues with statement functions. First, a dummy argument in a statement function declarations acquires only its type and type parameters from the containing scope. All attributes should be ignores. The first fix for PR fortran/84276 disables a check for the