// PR c++/67225 // { dg-do compile { target c++20 } } // { dg-additional-options "-fconcepts" } template concept Dummy = true; template class example { template friend auto func(); }; class test { test() = default; }; int main() { test t; // { dg-error "private within this context" } }