[clang] [flang] [flang] Add UNSIGNED (PR #113504)

Daniel Chen via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 24 08:21:08 PDT 2024


================
@@ -135,8 +141,12 @@ static constexpr TypePattern SubscriptInt{IntType, KindCode::subscript};
 
 // Match any kind of some intrinsic or derived types
 static constexpr TypePattern AnyInt{IntType, KindCode::any};
+static constexpr TypePattern AnyUnsigned{UnsignedType, KindCode::any};
----------------
DanielCChen wrote:

I got a error from `-Wunused-const-variable`
```
llvm-project/flang/lib/Evaluate/intrinsics.cpp:144:30: error: unused variable 'AnyUnsigned' [-Werror,-Wunused-const-variable]
static constexpr TypePattern AnyUnsigned{UnsignedType, KindCode::any};
```

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


More information about the cfe-commits mailing list