This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR28762 - program name 'write' causes compiler crash on if statements containing write commands.
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Paul Thomas <paulthomas2 at wanadoo dot fr>
- Cc: "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 18 Aug 2006 09:29:45 -0700
- Subject: Re: [Patch, fortran] PR28762 - program name 'write' causes compiler crash on if statements containing write commands.
- References: <44E5B03A.8090301@wanadoo.fr>
On Fri, Aug 18, 2006 at 02:19:06PM +0200, Paul Thomas wrote:
> ! { dg-do compile }
> ! Tests the fix for PR28762 in which the program name would cause
> ! the compiler to test the write statement as a variable thereby generating
> ! an "Expecting VARIABLE" error.
> !
> ! Contributed by David Ham <David@ham.dropbear.id.au>
> !
> program allocate
> integer :: debuglevel = 1
> integer, allocatable :: x(:)
> if (0 < debuglevel) allocate (x(10))
> end program allocate
>
>
OK with a ChnageLog entry.
--
Steve