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] Don't apply SAVE attribute to function results


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!


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