[clang] Enable unguarded availability diagnostic on instantiated template functions (PR #91699)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Fri May 10 12:15:52 PDT 2024
================
@@ -177,16 +177,19 @@ void justAtAvailable(void) {
#ifdef OBJCPP
-int f(char) AVAILABLE_10_12;
+int f(char) AVAILABLE_10_12; // #f_char_def
int f(int);
template <class T> int use_f() {
- // FIXME: We should warn here!
- return f(T());
----------------
hekota wrote:
Thanks for the quick response! I have added the test cases you requested. No additional warnings are emitted.
https://github.com/llvm/llvm-project/pull/91699
More information about the cfe-commits
mailing list