]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran - correct check for constraint F2008:C628 / F2018:C932
authorHarald Anlauf <anlauf@gmx.de>
Mon, 30 Aug 2021 20:41:01 +0000 (22:41 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 30 Aug 2021 20:41:01 +0000 (22:41 +0200)
commit9213ff13247739d6d335064a6b568278a872a991
tree6e2770f644f4229344e943fca9f2b12419f94da3
parent7465c2ed6f1a1dfb2bec4b18bcad5fe3210b3f4e
Fortran - correct check for constraint F2008:C628 / F2018:C932

gcc/fortran/ChangeLog:

PR fortran/101349
* resolve.c (resolve_allocate_expr): An unlimited polymorphic
argument to ALLOCATE must be ALLOCATABLE or a POINTER.  Fix the
corresponding check.

gcc/testsuite/ChangeLog:

PR fortran/101349
* gfortran.dg/unlimited_polymorphic_33.f90: New test.
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/unlimited_polymorphic_33.f90 [new file with mode: 0644]