// RUN: %clang_cc1 -std=c++17 -verify %s // RUN: %clang_cc1 -std=c++20 -verify %s namespace GH61356 { template class boo {void foo();}; template class boo; template void boo::foo(){} // expected-error{{out-of-line definition of 'foo' from class 'boo' without definition}} }