[patch, fortran] PR34495 - accepts invalid init-expr with TRANSFER

Daniel Franke franke.daniel@gmail.com
Tue Dec 18 23:13:00 GMT 2007


On Tuesday 18 December 2007 17:22:15 Daniel Franke wrote:
> On Tuesday 18 December 2007 15:01:16 Tobias Burnus wrote:
> > Daniel Franke wrote:
> > > On Tuesday 18 December 2007 11:39:14 Daniel Franke wrote:
> > >> 2007-12-18  Daniel Franke  <franke.daniel@gmail.com>
> > >>
> > >> 	PR fortran/34495
> > >> 	* transfer_simplify_2.f90: Fixed invalid initialization expressions.
> > >> 	* transfer_simplify_7.f90: New test.
> >
> > Nice patch, but it gives now an ICE for the following invalid program:
> >
> >   implicit none
> >   dimension :: i1(5)
> >   integer :: i1 = transfer([1,2,3,4,5], i1)
> >   end
>
> Good point.

After discussion with Tobias on IRC, yet another update refining error 
messages. Regression tested on i686-pc-linux-gnu, no errors.

Regards
	Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr34495.diff
Type: text/x-diff
Size: 4383 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071218/8d429305/attachment.bin>


More information about the Fortran mailing list