[Patch, Fortran] PR57549 - fix type-spec handling with array constructors

Tobias Burnus burnus@net-b.de
Fri Jun 7 14:03:00 GMT 2013


Unreviewed patches:
* http://gcc.gnu.org/ml/fortran/2013-06/msg00027.html
* http://gcc.gnu.org/ml/fortran/2013-06/msg00048.html

  * * *

As with ALLOCATE (type-spec :: ...), also array constructors take as 
type-spec a type name ("integer, my_dt, etc.) without an extra TYPE().

Thus, instead of using the decl.c var decl function, we use the same as 
for allocate.

Build and regtested on x86-64-gnu-linux.
OK for the trunk?


 From the standard:

The Fortran 2008 standard has:

R469  ac-spec  is  type-spec ::
                or  [type-spec ::] ac-value-list

R402  type-spec  is  intrinsic-type-spec
                  or  derived-type-spec

R453  derived-type-spec  is  type-name [ ( type-param-spec-list ) ]


Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array-constr-ts.diff
Type: text/x-patch
Size: 4099 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130607/e4876abb/attachment.bin>


More information about the Fortran mailing list