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

            Bug ID: 102005
           Summary: ICE: tree check: expected function_type or
                    method_type, have integer_type in
                    set_flags_from_callee, at cp/call.c:334
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

int foo();

template<auto f = [](int = foo()){ }>
void bar() { f(); }

int main() {
  bar();
}

https://godbolt.org/z/xbYoczGoz

Reply via email to