// PR c++/89612 // { dg-do compile { target c++11 } } template struct C { template friend int foo() noexcept(N); template friend int foo2() noexcept(N); // { dg-error "different exception" } }; template int foo() noexcept(N); template int foo2() noexcept(N + 1); C c;