[PATCH] PR fortran/67885 -- PARAMETER needs to be marked in BLOCK
Steve Kargl
sgk@troutmask.apl.washington.edu
Mon Oct 26 19:55:00 GMT 2015
When an specification statement in a BLOCK construct has a
PARAMETER attribute, gfortran currently discards the entity.
This patch marks PARAMETER entity if in a BLOCK. I'm not
complete convince that this is the right fix, but it does
allow the testcase to compile and run. Built and tested
on x86_64-*-freebsd. OK to commit (if not no one has a
better patch)?
2015-10-26 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/67885
* trans-decl.c (generate_local_decl): Mark PARAMETER entities in
BLOCK construct.
2015-10-26 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/67885
* gfortran.dg/pr67885.f90: New test.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr67885.diff
Type: text/x-diff
Size: 1176 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151026/78a23f13/attachment.bin>
More information about the Fortran
mailing list