PING: [patch, fortran] PR 27997: Implement F2003-style array constructor with typespec

Daniel Kraft d@domob.eu
Tue Apr 22 16:42:00 GMT 2008


Hi,

how's about this one?  I'm sure there must be lots of critics ;)

Daniel

-------- Original Message --------
Subject: [patch, fortran] PR 27997: Implement F2003-style array 
constructor  with typespec
Date: Mon, 07 Apr 2008 17:30:20 +0000
From: Daniel Kraft <d@domob.eu>
To: Fortran List <fortran@gcc.gnu.org>,  gcc-patches@gcc.gnu.org
Newsgroups: gmane.comp.gcc.patches,gmane.comp.gcc.fortran

Hi,

for my initial hack on GCC, I worked on PR fortran/27997 to add support
for the Fortran 2003 feature "array constructor with typespec"; here's
the patch.

I did regression test it on i686 GNU/Linux with no unexpected failures;
but I'm still concerned about some things I did in the patch and if they
are really correct, marked with XXX:--so I hope you guys can look at this.

Yours,
Daniel

Changelog for gcc/fortran:

2008-04-07  Daniel Kraft  <d@domob.eu>

	PR fortran/27997
	* gfortran.h:  Added field "length_from_typespec" to
	gfc_charlength needed for the patch.
	* array.c:  Added parsing of typespec to
	gfc_match_array_constructor and extended
	gfc_resolve_character_array_constructor to correctly
	pad strings when a constant character length was given
	by a typespec.
	* trans-array.c:  Added code to gfc_trans_array_constructor
	to support explicit but dynamic character lengths.

Changelog for gcc/testsuite:

2008-04-07  Daniel Kraft  <d@domob.eu>

	PR fortran/27997
	* gfortran.dg/array_constructor_type_1.f03:  New test
	* gfortran.dg/array_constructor_type_2.f03:  New test
	* gfortran.dg/array_constructor_type_3.f03:  New test
	* gfortran.dg/array_constructor_type_4.f03:  New test
	* gfortran.dg/array_constructor_type_5.f03:  New test
	* gfortran.dg/array_constructor_type_6.f03:  New test
	* gfortran.dg/array_constructor_type_7.f03:  New test
	* gfortran.dg/array_constructor_type_8.f03:  New test
	* gfortran.dg/array_constructor_type_9.f:  New test
	* gfortran.dg/array_constructor_type_10.f03:  New test
	* gfortran.dg/array_constructor_type_11.f03:  New test
	* gfortran.dg/array_constructor_type_12.f03:  New test
	* gfortran.dg/array_constructor_type_13.f90:  New test

-- 
Done:     Bar-Sam-Val-Wiz, Dwa-Elf-Hum-Orc, Cha-Law, Fem-Mal
Underway: Ran-Gno-Neu-Fem
To go:    Arc-Cav-Hea-Kni-Mon-Pri-Rog-Tou

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


More information about the Fortran mailing list