// RUN: %clang_cc1 -std=c++26 -fsyntax-only -verify %s namespace MemberSpecialization { template struct A { template void f() noexcept(B); // FIXME expected-note@-1 {{previous declaration is here}} template void g() noexcept(B); // expected-note {{previous declaration is here}} }; template<> template void A::f() noexcept(B); // FIXME expected-error@-1 {{exception specification in declaration does not match previous declaration}} template<> template void A::g() noexcept(!B); // expected-error {{exception specification in declaration does not match previous declaration}} } namespace Friend { template void f() noexcept(B); // FIXME expected-note@-1 {{previous declaration is here}} template void g() noexcept(B); // expected-note {{previous declaration is here}} template struct A { template friend void f() noexcept(B); // FIXME expected-error@-1 {{exception specification in declaration does not match previous declaration}} template friend void g() noexcept(!B); // expected-error {{exception specification in declaration does not match previous declaration}} }; }