https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88548

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And since r175671 we accept it also in late return type:
struct S {
  int a;
  auto m1 () -> decltype(this->a) { return 0; }
  void m2 () noexcept(noexcept(this->a)) { }
  static auto m3 () -> decltype(this->a) { return 0; }
  static void m4 () noexcept(noexcept(this->a)) { }
};
Godbolt shows that clang++ and icpc both reject m3 and m4.

Reply via email to