https://llvm.org/bugs/show_bug.cgi?id=23987

            Bug ID: 23987
           Summary: -Wnullability-completeness broken for templated types
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Consider the following code in a header:

_Pragma("clang assume_nonnull begin")
template <typename T>
inline void f(T x) {}
_Pragma("clang assume_nonnull end")

This gives the following bogus warning:

./nullability.h:3:15: warning: pointer is missing a nullability type
specifier (__nonnull or __nullable) [-Wnullability-completeness]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to