[clang] [clang][Sema] Allow abstract declarators to specify cv-qualified function types as per CWG1417 (PR #209836)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 16 07:59:35 PDT 2026


================
@@ -5603,7 +5602,8 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,
          (D.getContext() == clang::DeclaratorContext::Member &&
           D.isStaticMember())) &&
         !IsTypedefName && D.getContext() != DeclaratorContext::TemplateArg &&
-        D.getContext() != DeclaratorContext::TemplateTypeArg) {
+        D.getContext() != DeclaratorContext::TemplateTypeArg &&
+        D.getContext() != DeclaratorContext::TypeName) {
----------------
AZero13 wrote:

@efriedma-quic Your example is not allowed. 

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


More information about the cfe-commits mailing list