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

via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 27 08:25:08 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>
----------------
yronglin wrote:

I've keep test case in this file, because clang currently has this issue https://godbolt.org/z/Wf46Er3qb

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


More information about the cfe-commits mailing list