[Bug c++/77927] unary right fold fails to compile
jeff.mirwaisi at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Oct 10 22:21:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77927
--- Comment #1 from Jeff Mirwaisi <jeff.mirwaisi at gmail dot com> ---
//unary right fold fails to compile
template<int...N> void f(){int A[]={(((void)N,int()),...)};}
//corresponding left fold works as expected
template<int...N> void f(){int A[]={(...,((void)N,int()))};}
//both are simple tests that generate a single element array int A[1]={0}
More information about the Gcc-bugs
mailing list