1! { dg-do compile }
2!
3! PR 50379: ICE in gfc_typenode_for_spec at fortran/trans-types.c
4!
5! Contributed by Vittorio Zecca <zeccav@gmail.com>
6
7  function f() result(res)
8    interface res          ! { dg-error "attribute conflicts with" }
9  end
10