[patch, fortran] PR50555 synonymous namelist/statement function dummy argument not allowed

Jerry DeLisle jvdelisle@charter.net
Sun Feb 7 04:13:00 GMT 2016


Hi All,

Attached patch adds diagnostics to catch this.

Test case included. Regression tested on x86-64

OK for trunk?

Regards,

Jerry

PS Want to get this one out of the way so I can do the new namelist regression
with DELIM=NONE.

2016-02-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/50555
	* primary.c (match_actual_arg): If symbol has attribute flavor of
	namelist, generate an error. (gfc_match_rvalue): Likewise return
	MATCH_ERROR.
	* resolve.c (resolve_symbol): Scan arument list of procedures and
	generate an error if a namelist is found.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr50555.diff
Type: text/x-patch
Size: 2436 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160207/ce192ae8/attachment.bin>


More information about the Gcc-patches mailing list