[Patch, Fortran, OOP] PR 43696: Bogus error: Passed-object dummy argument must not be POINTER

Janus Weil janus@gcc.gnu.org
Tue May 4 19:12:00 GMT 2010


Hi all,

here is my fix for PR 43696. The original test case is fixed by the
two-liner in symbol.c (I'm sure we already had this in the early OOP
implementation, but apparently it got lost at some point, though I
don't remember why).
The parts in resolve.c are needed to fix the ICE in comment #4: The
first hunk prevents the ICE and the other two give the correct error
message.

The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?

Cheers,
Janus



2010-05-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/43696
	* resolve.c (resolve_fl_derived): Some fixes for class variables.
	* symbol.c (gfc_build_class_symbol): Add separate class container for
	class pointers.


2010-05-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/43696
	* gfortran.dg/class_17.f03: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43696.diff
Type: text/x-diff
Size: 2078 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100504/3b42d618/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class_17.f03
Type: application/octet-stream
Size: 1908 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100504/3b42d618/attachment.obj>


More information about the Gcc-patches mailing list