This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fortran/28548 -- Optional argument fails.


The attach patch appears to fix the problem noted in
fortran/28548.  The problem is that the internal functions
__convert_* are marked as elemental Fortran procedures,
so that the elemental infrastructure can be used to deal
with both scalar and array arguments.  Enforcement of
section 12.4.1.5 of the standard is catching these 
functions (as it should if these weren't internal functions).

I've bootstrapped and regression tested this patch on
i386-*-freebsd.

2006-08-01  Steven G. Kargl <kargls@comcast.net>

	PR fortran/28548
	* resolve.c (resolve_elemental_actual): Special case __convert_*
	with respect to section 12.4.1.5.

	* gfortran.dg/internal_convert.f90: New test.

-- 
Steve

Attachment: resolve.c.diff
Description: Text document

Attachment: internal_convert.f90
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]