re PR fortran/82796 (Private+equivalence in used module breaks compilation of pure...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 4 Nov 2017 00:34:40 +0000 (00:34 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 4 Nov 2017 00:34:40 +0000 (00:34 +0000)
commit9cfdd48417dce7d29a410510d2fb0e9b74b66878
tree7d73f7805a210e37799ecbeba06b8b41e8506e2e
parentda768c5b5cb0a187ae01d2c12e7f7323ee77734c
re PR fortran/82796 (Private+equivalence in used module breaks compilation of pure function)

2017-11-01  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82796
* resolve.c (resolve_equivalence): An entity in a common block within
  a module cannot appear in an equivalence statement if the entity is
with a pure procedure.

2017-11-01  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82796
* gfortran.dg/equiv_pure.f90: New test.

From-SVN: r254403
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/equiv_pure.f90 [new file with mode: 0644]