// PR c++/56643 // { dg-do compile { target c++11 } } template struct Test { template friend void test(Test& arg) noexcept(M == 0); }; template void test(Test& arg) noexcept(N == 0) {} int main() { Test<0> t; test(t); return 0; }