diff options
| author | Richard Smith <richard@metafoo.co.uk> | 2020-08-19 12:46:22 -0700 |
|---|---|---|
| committer | Richard Smith <richard@metafoo.co.uk> | 2020-08-19 15:45:51 -0700 |
| commit | 6f339367195e7464df87571062529bbe20157bdf (patch) | |
| tree | 98998b5e88e9fb578bf6ffa78f2d429acc041603 /clang/test/OpenMP/master_taskloop_simd_aligned_messages.cpp | |
| parent | 09ca3f41bbc5c2c4480accd6404f61bd9e5172a5 (diff) | |
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.
Diffstat (limited to 'clang/test/OpenMP/master_taskloop_simd_aligned_messages.cpp')
| -rw-r--r-- | clang/test/OpenMP/master_taskloop_simd_aligned_messages.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<class I, class C> 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) |
