| ! Check the fix for PR104625 in which the selectors in parentheses used |
| ! to cause ICEs. The "Unclassifiable statement" errors were uncovered once |
| ! Contributed by Gerhard Steinmetz <gscfq@t-online.de> |
| class(t) :: x(:) ! Used to ICE in combination with below |
| class(t), allocatable :: r(:) |
| select type (y => x) ! OK |
| select type (z => (x)) ! Used to ICE |
| r = z(1) ! Used to give "Unclassifiable statement" error |
| z%a = 99 ! { dg-error "cannot be used in a variable definition" } |
| select type (u => ((x))) ! Used to ICE |
| r = u(1) ! Used to give "Unclassifiable statement" error |
| u%a = 99 ! { dg-error "cannot be used in a variable definition" } |