[patch, fortran] PR41940 - allocating scalars with shape

Jerry DeLisle jvdelisle@verizon.net
Mon Dec 7 01:08:00 GMT 2009


On 12/06/2009 06:13 AM, Daniel Franke wrote:
>
> gcc/fortran:
> 2009-12-06  Daniel Franke<franke.daniel@gmail.com>
>
>          PR fortran/41940
> 	* match.c (gfc_match_allocate): Improved error message for
> 	allocatable scalars that are allocated with a shape.
>
> gcc/testsuite:
> 2009-12-06  Daniel Franke<franke.daniel@gmail.com>
>
> 	PR fortran/41940
> 	* gfortran.dg/allocate_scalar_with_shape.f90: New.
>
>
> Regression tested on i686-pc-linux-gnu. Ok for trunk?
>
> Cheers
>
> 	Daniel
OK with spelling fix:

+	  gfc_error ("Shape specifiation for allocatable scalar at %C");

Should be:

+	  gfc_error ("Shape specification for allocatable scalar at %C");

Regards,

Jerry



More information about the Fortran mailing list