// RUN: %clang_cc1 -std=c++2a -x c++ %s -verify -fsyntax-only -Wno-unused-value // expected-no-diagnostics namespace GithubBug44178 { template struct CRTP { void call_foo() requires requires(D &v) { v.foo(); } { static_cast(this)->foo(); } }; struct Test : public CRTP { void foo() {} }; int main() { Test t; t.call_foo(); return 0; } } // namespace GithubBug44178