Open llvmbot opened 11 years ago
This is also massively annoying when using C11's _Generic() keyword:
int main() { cos(banana); }
bla.c:6:7: error: use of undeclared identifier 'banana' cos(banana); ^ bla.c:3:25: note: expanded from macro 'cos'
^
bla.c:6:7: error: use of undeclared identifier 'banana' bla.c:3:73: note: expanded from macro 'cos'
^
2 errors generated.
Extended Description
Testcase: void f() { return x+x+x+x; }
Do we really need to print out a use of undeclared identifier on each use of 'x'? Could we at least batch them by inner-most scope, if not by nearest declcontext?
$ echo 'void f() { return x+x+x+x; }' | llvm/Debug+Asserts/bin/clang -x c -