[clang] [clang] Support `__is_trivially_copyable(int()&)==false` (PR #81298)

via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 22 01:35:33 PST 2024


================
@@ -3941,7 +3943,7 @@ ExprResult Parser::ParseArrayTypeTrait() {
   if (T.expectAndConsume())
     return ExprError();
 
-  TypeResult Ty = ParseTypeName();
+  TypeResult Ty = ParseTypeName(nullptr, DeclaratorContext::TemplateArg);
----------------
cor3ntin wrote:

```suggestion
  TypeResult Ty = ParseTypeName(/*SourceRange=*/nullptr, DeclaratorContext::TemplateArg);
```

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


More information about the cfe-commits mailing list