Compile the following sources with -combine: ---- file1.c ---- int f(void) {} ---- end ---- ---- file2.c ---- int f(void) {} ---- end ----
We used to reject this in 4.0.0. This was caused by: 2005-06-28 Eric Christopher <[EMAIL PROTECTED]> PR c/22052 PR c/21975 * c-decl.c (diagnose_mismatched_decls): Define DECL_EXTERN_INLINE. Use. Fix detection of invalid extern inline redefinition. -- Summary: [4.1 Regression] C does not reject the same function in two different TUs with -combine Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23104