re PR fortran/83246 (internal compiler error or loader problem might be related to...
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Feb 2019 22:54:05 +0000 (23:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Feb 2019 22:54:05 +0000 (23:54 +0100)
commit30253e235699f233b54f0ee147235bdec5759ac8
tree2a7a21f6d8995acdeb5367648833f3ee0aeaf51b
parentd9f0237f70ca25485576e3f8f32d7daee6ab1d50
re PR fortran/83246 (internal compiler error or loader problem might be related to a PARAMETER statement being in a BLOCK)

PR fortran/83246
PR fortran/89084
* trans-decl.c (generate_local_decl): Add referenced FL_PARAMETERs
if sym->ns->construct_entities rather than if
sym->ns->parent->code->op == EXEC_BLOCK.

* gfortran.dg/pr89084.f90: New test.
* gfortran.dg/lto/pr89084_0.f90: New test.
* gfortran.dg/pr83246.f90: New test.

From-SVN: r268462
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/lto/pr89084_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr83246.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr89084.f90 [new file with mode: 0644]