[Patch, fortran] PR24534 - private type components of public type / PR20838,20840 vector index constraints

Paul Thomas paulthomas2@wanadoo.fr
Sun Nov 6 06:47:00 GMT 2005


:ADDPATCH fortran:

Forgive me for mixing two separate issues here but one is urgent and I 
thought to piggy-back it on the other.

1] PR24534 - Error on good code; private type components of a public 
type are allowed if PRIVATE is declared within the the type definition.  
I have added one line to resolve_symbol and added the test to 
PRIVATE_TYPE_2.F90.

I propose to commit these changes tommorrow morning, as obvious, unless 
anybody objects.

2] PR20838,20840 - Two situations where vector indices are not 
permitted. Internal units and the rvalue expression of pointer 
assignments are not allowed to have vector indices.  I have added a 
small function to expr.c to perform the test for vector indices on an 
expression and two corresponding test cases.

Bubblestrapped and regtested on FC3/Athlon.  OK for mainline and 4.0?

Paul T


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: submit1106.txt
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20051106/b01839b7/attachment.txt>


More information about the Fortran mailing list