https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68377
Bug ID: 68377 Summary: [c++1z] "binary expression in operand of fold-expression" error when folding an expression Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- The following code gives the error "binary expression in operand of fold-expression" //////////////////////////////////////////////////////////// #include <iostream> template<class... Tx> int f(Tx... xs) { return ((sizeof(Tx) == sizeof(int)) && ...); } int main() { std::cout << f(3,4,5) << "\n"; return 0; } //////////////////////////////////////////////////////////// It works fine with clang (http://melpon.org/wandbox/permlink/cqH0ENHFHNGLbkZW)