This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, fortran] Fix PR41235, accepts invalid


On 12/08/2009 08:42 PM, Daniel Franke wrote:
> Attached patch fixes PR41235, functions with non-constant string length as a 
> return type require an explicit interface.
>
> No new testcase as this is already included in gfortran.dg/auto_char_len_4.f90
>   
> 	* gfortran.dg/auto_char_len_4.f90: Check for additional error.
>   

I am a bit lost. Looking at auto_char_len_4.f90 I fail to see what what
you plan to change there. (The patch didn't include any testsuite
changes.) Additionally, for the test case from the PR a patched gfortran
does not print any error message either. (Assuming that I have correctly
patched my GCC.)

Admittedly, I also have not checked whether "function level1" is already
invalid due to the "character(i) bigfunc" or only with "character(i)
bigfunc; character(1024) bigfunc". NAG only prints an error message if
both are present; for ifort and g95, it is enough for an error message
that only "function level1" is in the file. I do not know ad hoc which
one is correct; one probably can figure it out when reading the standard
or the PR+linked c.l.f thread.

Thanks for looking into the problem!

Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]