GCC 4.0 fails to diagnose cases of parameter forward declarations followed by no
normal parameter declarations, such as
int g1(int a;);
int g2(int a; __attribute__((unused)));
int g3(int;);
int g4(int, long;);
The same applies to 4.1 once I've fixed bug 23143. 3.4 diagnoses these cases.
--
Summary: [4.0/4.1 Regression] invalid parameter forward
declarations not diagnosed
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsm28 at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23144