// { dg-do compile { target c++11 } } int sm; template T pk () noexcept (sm) // { dg-error "constant expression" } { return 0; }