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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
template <char &E> void foo ();
struct A { char a; };
#ifndef SB
char &bar ();
char &x = bar ();
#else
A &bar ();
auto &[x] = bar ();
#endif

void
baz ()
{ 
  foo <x> ();
} 

shows that without structured binding we reject it already, but with -DSB ICE.

Reply via email to