1 ! RUN: %python %S/test_errors.py %s %flang_fc1
4 type :: base(kindparam
, lenparam
)
5 integer, kind
:: kindparam
6 integer, len
:: lenparam
8 type, extends(base
) :: ext1
12 type, extends(ext1
) :: ext2
16 class(ext1(123,*)), target
:: x
17 class(ext1(123,:)), pointer :: tbp
21 type(ext1(123,456)), target
:: var
22 select
type (sel
=> var
%tbp())
23 type is (ext1(123,*)) ! ok
24 type is (ext2(123,*)) ! ok
25 !ERROR: Type specification 'ext1(kindparam=234_4,lenparam=*)' must be an extension of TYPE 'ext1(kindparam=123_4,lenparam=:)'
27 !ERROR: Type specification 'ext2(kindparam=234_4,lenparam=*)' must be an extension of TYPE 'ext1(kindparam=123_4,lenparam=:)'