[clang] [clang] adds explanation for why std::is_const is false (PR #235587)

Jared Wyles via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 25 23:29:07 PST 2026


================
@@ -1911,7 +1912,9 @@ def note_unsatisfied_trait_reason
            "%ArrayType{is an array type}|"
            "%UnionType{is a union type}|"
            "%NotStructOrClass{is not a struct or class type}|"
-           "%OverridesAllPureVirtual{overrides all pure virtual functions from base class %1}"
+           "%OverridesAllPureVirtual{overrides all pure virtual functions from base class %1}|"
+           "%FunctionTypeNotConstQualified{is a function type, which are never const-qualified}|"
----------------
jaredwy wrote:

I suspect its also just incorrect not grammatically incorrect.. https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0172r0.html  
perhaps "is a function type, and const on a function type is ignored"

https://github.com/llvm/llvm-project/pull/235587


More information about the cfe-commits mailing list