re PR fortran/47839 (ICE in dwarf2out.c:add_AT_specification)
authorRichard Guenther <rguenther@suse.de>
Thu, 24 Feb 2011 09:53:26 +0000 (09:53 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 24 Feb 2011 09:53:26 +0000 (09:53 +0000)
commit5b1cce91e5295d3c1d42e2bea4b2c6f51a4ccd65
tree4c970e4ebdf5239ec11759f84f7472469b258a8f
parent68f792d0d5c6865aba270fd840700782576baafd
re PR fortran/47839 (ICE in dwarf2out.c:add_AT_specification)

2011-02-24  Richard Guenther  <rguenther@suse.de>

PR fortran/47839
* f95-lang.c (pushdecl): For externs in non-global scope push
a copy of the decl into the BLOCK.

* gfortran.dg/lto/pr47839_0.f90: New testcase.
* gfortran.dg/lto/pr47839_1.f90: Likewise.

From-SVN: r170463
gcc/fortran/ChangeLog
gcc/fortran/f95-lang.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/lto/pr47839_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/lto/pr47839_1.f90 [new file with mode: 0644]