alexfh wrote: Something went wrong here, since valid code started triggering the `-Winvalid-noreturn` diagnostic after this commit: https://gcc.godbolt.org/z/zvs9MG7rz
``` template<typename T> struct S { void f(); }; template<typename T> void S<T>::f() { throw 0; } template<> void S<int>::f() {} ``` ``` <source>:10:19: error: function declared 'noreturn' should not return [-Werror,-Winvalid-noreturn] 10 | void S<int>::f() {} | ^ ``` https://github.com/llvm/llvm-project/pull/145166 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits