https://llvm.org/bugs/show_bug.cgi?id=28986
Bug ID: 28986 Summary: type-id/expression in cstyle-cast are disambiguated incorrectly Product: clang Version: 3.8 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++11 Assignee: unassignedclangb...@nondot.org Reporter: vanya...@gmail.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified clang shows syntax error on this code. Looks like it disambiguates the expression "(mytype())(args...)" as cstyle-cast although "(args...)" is not a valid cast-expression. struct mytype { template <typename... T> void operator()(T&& ...) const {} }; template <typename... T> void f(T&& ...args) { (mytype())(args...); // error: expected binary operator before ')' token } int main() { f(1, 2, 3); } -- 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