[Bug c++/94890] std::tuple<aggregate>({0}) fails to compile with -std=c++2a

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 30 23:01:47 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94890

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Minimal testcase:


template <class e, class = decltype(e(0))>
void foo();

struct t { int a; };

void bar()
{
  foo<t>();
}


More information about the Gcc-bugs mailing list