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

            Bug ID: 91378
           Summary: [9/10 regression] [C++17] ICE in
                    type_dependent_expression_p with noexcept and deduced
                    return type
           Product: gcc
           Version: 9.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: jason at gcc dot gnu.org
          Reporter: jason at gcc dot gnu.org
  Target Milestone: ---

// { dg-do compile { target c++14 } }                                           

struct B
{
  int i;
};

struct C
{
  template <class T> static auto
  g(B b) noexcept(noexcept(b.i)) { }
};

template <class T>
void h(T t)
{
  C::g<int>({});
}

Reply via email to