When undoing symbols, also restore common block lists
authorBud Davis <jmdavis@link.com>
Sat, 8 Aug 2015 10:40:06 +0000 (10:40 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Sat, 8 Aug 2015 10:40:06 +0000 (10:40 +0000)
commit0d251765bed679b14b4f9f2d5ade7870b7b9d7c5
treec8bd13a546047aec236cde7a6d75dd3216d8a6a3
parent1aeec6dc1f26657cc32ed107b3de255566fcca41
When undoing symbols, also restore common block lists

gcc/fortran/
2015-08-08  Bud Davis  <jmdavis@link.com>
    Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/59746
* symbol.c (gfc_restore_last_undo_checkpoint): Delete a common block
symbol if it was put in the list.

gcc/testsuite/
2015-08-08  Bud Davis  <jmdavis@link.com>

PR fortran/59746
* gfortran.dg/common_22.f90: New.

Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
From-SVN: r226732
gcc/fortran/ChangeLog
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/common_22.f90 [new file with mode: 0644]