Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/proc_ptr_comp_22.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR 41978: [F03] ICE in gfc_conv_expr_descriptor for array PPC assignment ! ! Contributed by Daniel Kraft <domob@gcc.gnu.org> MODULE m IMPLICIT NONE TYPE t PROCEDURE(myproc), POINTER, PASS :: myproc END TYPE t CONTAINS INTEGER FUNCTION myproc (me) CLASS(t), INTENT(IN) :: me myproc = 42 END FUNCTION myproc END MODULE m PROGRAM main USE m IMPLICIT NONE TYPE(t) :: arr(2) arr%myproc => myproc ! { dg-error "must not have the POINTER attribute" } END PROGRAM main