PROTECTED attribute - almost working patch

Paul Thomas paulthomas2@wanadoo.fr
Sun Dec 10 11:41:00 GMT 2006


Tobias
>
> The attribute "protected" seems to be reset right after reading one line
> of source - and this resetting does not happen for other attributes nor
> when using the protected statement.
>
> Any idea? - I'm completely puzzled and have not the slightest idea why
> this happens.
>
>   
You need to add a line to copy the protected attribute in 
symbol.c(copy_attr); take the line for volatile as an example.  This 
works for me.  The reset is due to a lack of copying; I think that it 
will be when another attribute is added, for example, in the external 
statement but I have not checked this.

Best regards

Paul



More information about the Fortran mailing list