[gfortran] Fix PR31471: Missing construct name in END and related bugs

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Thu Apr 12 17:10:00 GMT 2007


Hi,

this patch fixes PR31471, where we would allow the
forall-construct-name to be omitted in a named FORALL block.  The fix
for this is the straightforward hunk to decl.c.  In it you will also
see the fix for the analogous problem with where.  Putting together
testcases I noticed, and fixed, two further problems: if an ELSEWHERE
statement in a WHERE construct without a construct name is followed by
something, we would segfault due to a NULL pointer dereference.  This
is fixed by returning an error.  The second problem is purely
cosmetic, SELECT CASE was printed in lowercase in an error message.

Built and tested on i386-darwin.  New testcases included.  Ok?

- Tobi

:ADDPATCH fortran:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr31471.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070412/0e6c5e49/attachment.txt>


More information about the Gcc-patches mailing list