Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/proc_ptr_comp_22.f90 @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +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