[Patch, fortran] PR50981 absent polymorphic scalar actual arguments

Mikael Morin mikael.morin@sfr.fr
Sun Feb 12 21:15:00 GMT 2012


Hello,

this is the next PR50981 fix:
when passing polymorphic scalar actual arguments to elemental 
procedures, we were not adding the "_data" component reference.
The fix is straightforward; checking that the expression's type is 
BT_CLASS was introducing regressions, so this patch uses a helper 
function to check the type without impacting the testsuite.

Regression tested on x86_64-unknown-freebsd9.0. OK for trunk?

Mikael


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: elemental_optional_scalar_class-1.CL
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120212/d64b1869/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elemental_optional_scalar_class-1.patch
Type: text/x-patch
Size: 1651 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120212/d64b1869/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: elemental_optional_scalar_class-tests.CL
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120212/d64b1869/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: elemental_optional_scalar_class-test.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120212/d64b1869/attachment-0002.ksh>


More information about the Gcc-patches mailing list