以下代码使用gcc编译好.
struct A{ A() = default;}; struct B{ B() noexcept = default;}; int main(){ A a; B b; return 0;}
默认声明的特殊成员函数将具有noexcept说明符,具体取决于所涉及函数的noexcept说明符(其隐式noexcept说明符).如果明确指定noexcept,则编译失败,如果这与隐式noexcept说明符冲突.