[Patch, Fortran] PR 42353: [OOP] Bogus Error: Name 'vtype$...' at (1) is an ambiguous reference ...
Janus Weil
janus@gcc.gnu.org
Sun Dec 13 23:24:00 GMT 2009
Hi all,
the attached patch fixes a small OOP problem, where under certain
circumstances one would get 'ambiguous reference' errors for the
vtypes. The easiest thing I could think of to fix this is to make the
vtypes private, which means that each module which uses a vtype will
have its own private copy (which in principle should not be a problem,
should it?).
The patch was successfully regtested on x86_64-unknown-linux-gnu. Ok for trunk?
Cheers,
Janus
gcc/fortran/
2009-12-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/42353
* symbol.c (gfc_find_derived_vtab): Make vtype private.
gcc/testsuite/
2009-12-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/42353
* gfortran.dg/class_13.f03: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr42353.diff
Type: application/octet-stream
Size: 1206 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091213/44d85982/attachment.obj>
More information about the Gcc-patches
mailing list