1 // RUN: %clang_cc1 -std=c++17 -verify %s 2 // RUN: %clang_cc1 -std=c++20 -verify %s 3 4 namespace GH61356 { 5 6 template <typename T, bool b> 7 class boo {void foo();}; 8 9 template <typename T> 10 class boo<T, true>; 11 12 template<typename T> foo()13void boo<T, true>::foo(){} // expected-error{{out-of-line definition of 'foo' from class 'boo<type-parameter-0-0, true>' without definition}} 14 15 } 16