This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77927] unary right fold fails to compile
- From: "jeff.mirwaisi at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Oct 2016 22:20:24 +0000
- Subject: [Bug c++/77927] unary right fold fails to compile
- Auto-submitted: auto-generated
- References: <bug-77927-4@http.gcc.gnu.org/bugzilla/>
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}