[PATCH] Ignore noreturn when checking function template specializations

Richard Smith richard at metafoo.co.uk
Tue Sep 10 14:40:03 PDT 2013

Comment at: test/SemaTemplate/function-template-specialization.cpp:61
@@ +60,2 @@
+template <int N> void __attribute__((noreturn)) f3() { __builtin_unreachable(); }
+template <> void f3<1>() { }
Hmm, should we produce a "function declared 'noreturn' should not return" warning here? Or does the explicit specialization override the 'noreturn' attribute?


More information about the cfe-commits mailing list