[Patch, fortran, pr65889, v1] [6 Regressions] [OOP] ICE with sizeof a polymorphic variable

Andre Vehreschild vehre@gmx.de
Tue Oct 6 14:23:00 GMT 2015


Hi all,

the attached patch fixes a 6 regression when the argument of sizeof()
is a pointer to a class object, e.g., when the class object is
intent(out). The patch improves the check if the parameter is a
class object by previously checking whether the argument is the plain
object or a pointer to one and using TREE_OPERAND() once or twice,
respectively.

Bootstraps and regtests ok on x86_64-linux-gnu/f21.

Ok for trunk?

Regards,
	Andre
-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr65889_1.clog
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151006/7fe8afef/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr65889_1.patch
Type: text/x-patch
Size: 1679 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151006/7fe8afef/attachment.bin>


More information about the Gcc-patches mailing list