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 <gerhard.steinmetz.fortran@t-online.de>
6
7type(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" }
10end
11