[Patch, Fortan] PR 47349: missing warning: Actual argument contains too few elements

Janus Weil janus@gcc.gnu.org
Sun Feb 13 23:27:00 GMT 2011


Hi all,

here is a small patch which concerns the checking of actual arguments:
The routine 'get_expr_storage_size' had trouble handling derived-type
components, and in consequence a warning mesage was missing for
components as actual arguments (see test case).

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

Cheers,
Janus



2011-02-14  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47349
	* interface.c (get_expr_storage_size): Handle derived-type components.


2011-02-14  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47349
	* gfortran.dg/argument_checking_17.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr47349.diff
Type: application/octet-stream
Size: 1292 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110213/92eb1228/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: argument_checking_17.f90
Type: application/octet-stream
Size: 749 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110213/92eb1228/attachment-0001.obj>


More information about the Fortran mailing list