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 PR fortran/67885 * trans-decl.c (generate_local_decl): Mark PARAMETER entities in BLOCK construct. 2015-10-26 Steven G. Kargl PR fortran/67885 * gfortran.dg/pr67885.f90: New test. -- Steve