From 6f339367195e7464df87571062529bbe20157bdf Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 19 Aug 2020 12:46:22 -0700 Subject: Explain why the array bound is non-constant in VLA diagnostics. In passing, also use a more precise diagnostic to explain why an expression is not an ICE if it's not of integral type. --- clang/test/OpenMP/master_taskloop_simd_aligned_messages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/OpenMP/master_taskloop_simd_aligned_messages.cpp') diff --git a/clang/test/OpenMP/master_taskloop_simd_aligned_messages.cpp b/clang/test/OpenMP/master_taskloop_simd_aligned_messages.cpp index 349fd601e5ef..c2c56dfdb458 100644 --- a/clang/test/OpenMP/master_taskloop_simd_aligned_messages.cpp +++ b/clang/test/OpenMP/master_taskloop_simd_aligned_messages.cpp @@ -151,7 +151,7 @@ template int foomain(I argc, C **argv) { for (I k = 0; k < argc; ++k) ++k; int v = 0; // expected-note@+2 {{initializer of 'j' is not a constant expression}} - // expected-error@+1 {{expression is not an integral constant expression}} + // expected-error@+1 {{integral constant expression}} #pragma omp master taskloop simd aligned(f:j) for (I k = 0; k < argc; ++k) { ++k; v += j; } #pragma omp master taskloop simd aligned(f) -- cgit v1.2.3