[patch, fortran] Don't apply SAVE attribute to function results

Daniel Franke franke.daniel@gmail.com
Sat Jan 3 18:49:00 GMT 2009


On Saturday 03 January 2009 19:09:37 Paul Richard Thomas wrote:
> I am a bit puzzled:
> > $> gfortran-svn -c save-result.f90
> > save-result.f90:1.25:
> >
> >  function f(x) result (g)
> >                         1
> > Error: RESULT attribute conflicts with SAVE attribute in 'g' at (1)
>
> Your testcase already produces this message without the patch applied.
>  Have I missed something?

Dear Paul, 

the other way round - there should be no message as SAVE shouldn't be applied 
to G to begin with.

With the patch, above example is accepted (please note that the testcase 
doesn't have any dg-error statements ;)

Cheers

	Daniel


P.S. Thanks for fixing the name-mangling issue!



More information about the Gcc-patches mailing list