re PR fortran/68440 ([OOP] ICE on declaring class variable with wrong attribute)
authorJanus Weil <janus@gcc.gnu.org>
Tue, 8 Nov 2016 22:07:21 +0000 (23:07 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Tue, 8 Nov 2016 22:07:21 +0000 (23:07 +0100)
commit103c4f759ab75305a7cb7927af6b35b1f5da5f06
treebca188b5b0956cce33dabe41bbc1bc121c18c073
parentfe7913f6887eaa6f5cdb150bd5315f8464d06beb
re PR fortran/68440 ([OOP] ICE on declaring class variable with wrong attribute)

2016-11-08  Janus Weil  <janus@gcc.gnu.org>

PR fortran/68440
* expr.c (check_alloc_comp_init): Loosen an assert.
* resolve.c (resolve_fl_parameter): Reject class parameters.

2016-11-08  Janus Weil  <janus@gcc.gnu.org>

PR fortran/68440
* gfortran.dg/class_58.f90: New test.

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