This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] Don't apply SAVE attribute to function results
Duuuh! OK then...
Paul
On Sat, Jan 3, 2009 at 7:15 PM, Daniel Franke <franke.daniel@gmail.com> wrote:
> 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!
>
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy