https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77927
Markus Trippelsdorf changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77927
Ville Voutilainen changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77927
--- Comment #3 from Jeff Mirwaisi ---
Apologies for the poor bug report, to clarify, unary right folds which use a
binary
operator in the fold parameter are failing to compile:
( (x op1 y) op2... );
//clearer examples - error: binary
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77927
--- Comment #2 from Jeff Mirwaisi ---
//error: binary expression in operand of fold-expression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77927
--- Comment #1 from Jeff Mirwaisi ---
//unary right fold fails to compile
template void f(){int A[]={(((void)N,int()),...)};}
//corresponding left fold works as expected
template void f(){int A[]={(...,((void)N,int()))};}
//both are simple