EXTENDS_TYPE_OF (The GNU Fortran Compiler)

### 8.110 `EXTENDS_TYPE_OF` — Query dynamic type for extension ¶

Synopsis:

  `RESULT = EXTENDS_TYPE_OF(A, MOLD)`

Description:

  Query dynamic type for extension.

Class:

  Inquiry function

Arguments:

  A | Shall be an object of extensible declared type or unlimited polymorphic.
  MOLD | Shall be an object of extensible declared type or unlimited polymorphic.

Return value:

  The return value is a scalar of type default logical. It is true if and only if the dynamic type of A is an extension type of the dynamic type of MOLD.

Standard:

  Fortran 2003 and later

See also:

  `SAME_TYPE_AS` — Query dynamic types for equality