// PR c++/88820 // { dg-do compile { target c++17 } } template struct S; template struct W { // { dg-error "class type" "" { target c++17_only } } template static int foo(); bool b = foo(); };