]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR fortran/83246 (internal compiler error or loader problem might be...
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Aug 2019 11:36:10 +0000 (13:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Aug 2019 11:36:10 +0000 (13:36 +0200)
commitff4e9fafa105bd0dcdf4ccfee775567ed310c19b
tree236e180328dfc1af32a760d246e93438f6bc4156
parent231ab4cd97da6d146bd0a6659472c80342bb0e1b
backport: re PR fortran/83246 (internal compiler error or loader problem might be related to a PARAMETER statement being in a BLOCK)

Backported from mainline
2019-02-01  Jakub Jelinek  <jakub@redhat.com>

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: r275096
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]