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/25078 Fix equivalence with too few args


The attached patch and testcase have been bubblestrapped
and regression tested on i386-*-freebsd.

The Fortran 95 standard requires two or more objects in an
equivalence statement.  This patch adds a counter and an
error is issued if the counter does not exceed 1.

OK for mainline and 4.1?


2005-12-11  Steven G. Kargl  <kargls@comcast.net>

	* match.c (gfc_match_equivalence):  Count number of objects

-- 
Steve

Attachment: equiv.diff
Description: Text document

Attachment: equiv_5.f90
Description: Text document


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