gcc/testsuite/gfortran.dg/derived_result.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! |
| 3 | ! PR 78593: [6/7 Regression] ICE in gfc_match_varspec, at fortran/primary.c:2053 |
| 4 | ! |
| 5 | ! Contributed by Gerhard Steinmetz <[email protected]> |
| 6 | |
| 7 | type(t) function add (x, y) ! { dg-error "is not accessible" } |
| 8 | integer, intent(in) :: x, y |
| 9 | add%a = x + y ! { dg-error "Unclassifiable statement" } |
| 10 | end |