http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51953
Bug #: 51953 Summary: [F2008] Allow multiple allocate-objects in ALLOCATE with SOURCE= Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org Fortran 2003 had: C631 (R623) If SOURCE= appears, type-spec shall not appear and allocation-list shall contain only one allocate-object, which shall be type compatible (5.1.1.2) with source-expr . Fortran 2008 has this is gone; one just has: C637 (R626) At most one of source-expr and type-spec shall appear. C638 (R626) Each allocate-object shall be type compatible (4.3.1.3) with source-expr. If SOURCE= appears, source-expr shall be a scalar or have the same rank as each allocate-object. gfortran checks this for SOURCE= (but not for MOLD= which is a F2008 feature): SOURCE tag at (1) requires only a single entity in the allocation-list Expected: Check this only for -std=f2003.