https://llvm.org/bugs/show_bug.cgi?id=24611
Bug ID: 24611 Summary: Rejects valid code: va_start in lambda function Product: clang Version: 3.6 Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangb...@nondot.org Reporter: bisq...@iki.fi CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified For this sample code: #include <cstdarg> #include <cstdio> int main() { auto test = [&](const char* fmt, ...) { va_list ap; va_start(ap,fmt); char Buf[1024]; std::vsprintf(Buf, fmt, ap); va_end(ap); std::puts(Buf); }; test("Test %d", 1); } Clang++-3.6 incorrectly gives the following error message: tmp.cc:9:9: error: 'va_start' used in function with fixed args va_start(ap,fmt); -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs