This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/77927] unary right fold fails to compile


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}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]