[clang] [Clang] Fix incorrect handling of #pragma {GCC} unroll N in dependent context (PR #90240)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 26 11:22:21 PDT 2024


================
@@ -124,3 +124,40 @@ void test(int *List, int Length) {
 
 #pragma unroll
 /* expected-error {{expected statement}} */ }
+
+using size_t = unsigned long long;
+
+template <bool Flag>
----------------
erichkeane wrote:

This test isn't particularly good, since it is validating that it 'parses', but that isn't our concern.  Please extract this to an AST test, and perhaps a codegen test.

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


More information about the cfe-commits mailing list