[Patch, Fortran] PR 42353: [OOP] Bogus Error: Name 'vtype$...' at (1) is an ambiguous reference ...

Harald Anlauf anlauf@gmx.de
Wed Dec 30 22:11:00 GMT 2009


Hi Janus!

> Here is a patch for fortran-dev, which reverts the PRIVATE attributes,
> and instead fixes the bug by adding special cases for vtabs and vtypes
> in the ambiguity checking. This removes all testsuite failures on
> fortran-dev. [Note that this patch won't apply to trunk, as the
> 'vtype' attribute is missing there.]
> 
> Paul, do you think this version of the patch is ok?
> 
> Harald, is it possible for you to try out the fortran-dev branch with
> this patch? If yes, it would be good to know if it works on your
> codes.

It took me some time to get a build of fortran-dev, but I succeeded.

However, the patch fails with the original testcase in the PR:

% /opt/gfortran/dev/bin/gfortran gfcbug96.f90
gfcbug96.f90:43.23:

  use concrete_gradient
                       1
Error: The element in the derived type constructor at (1), for pointer component '$extends', is DERIVED but should be DERIVED

So something is still missing.

Cheers,
-ha

-- 
-Harald Anlauf


GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01



More information about the Fortran mailing list