merging with K&R declaration mismatch with gcc #3960
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Extended Description
clang & gcc differ in how they treat the following code:
void g0(int, int);
void g0();
//void g0(int);
void f1() {
g0(1, 2, 3);
}
clang merges the declarations so that g0 is g0() after the second declaration; and therefore allows the commented out redefinition, and the call. gcc errors on both.
The text was updated successfully, but these errors were encountered: