Regression in C prototype handling?

Richard Earnshaw rearnsha@arm.com
Mon Feb 14 08:59:00 GMT 2000


Gcc has recently started to reject the following code

	void foo (int (*cmp)(int *, int *));

	void foo (int (*cmp)())
	{
	}

Is this intentional (it was accepted by 2.95.2, and probably as recently 
as last week).  If so, then it breaks newlib's qsort() which has this type 
of declaration/definition combination.

R.



More information about the Gcc-bugs mailing list