[clang] [OpenMP] Fix crash when diagnosing dist_schedule (PR #139277)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri May 9 08:35:59 PDT 2025
================
@@ -105,3 +105,11 @@ int main(int argc, char **argv) {
return (tmain<int, 5>(argc) + tmain<char, 1>(argv[0][0])); // expected-note {{in instantiation of function template specialization 'tmain<int, 5>' requested here}} expected-note {{in instantiation of function template specialization 'tmain<char, 1>' requested here}}
}
+
+namespace GH139266 {
+void f(void) {
+#pragma omp distribute dist_schedule(static, 0) // expected-error {[argument to 'dist_schedule' clause must be a strictly positive integer value}}
----------------
AaronBallman wrote:
Yup, already fixed it. :-)
https://github.com/llvm/llvm-project/pull/139277
More information about the cfe-commits
mailing list