[Patch, Fortran] PR 42353: [OOP] Bogus Error: Name 'vtype$...' at (1) is an ambiguous reference ...
Janus Weil
janus@gcc.gnu.org
Thu Dec 31 16:41:00 GMT 2009
>> 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
Argh. Should have checked this myself, sorry. Here is an updated
patch, which kills this error by adding a special case for vtypes in
'gfc_compare_derived_types'. Hope this one works better. I made sure
that it has no testsuite regressions at least.
Cheers,
Janus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr42353_fortran_dev.diff
Type: application/octet-stream
Size: 3093 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20091231/986dbb8c/attachment.obj>
More information about the Fortran
mailing list