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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As for the ICE, reduced testcase is:
struct S { int s; };
struct U { int u; };

template <typename T>
consteval decltype (^^int)
foo ()
{
  return ^^S::s;
}

template <>
consteval decltype (^^int)
foo <U> ()
{
  throw 1;
}

template <typename T>
auto
bar (T x)
{
  return x.[: foo <T> () :];
}

auto
baz (U x)
{
  return bar (x);
}

Reply via email to