================ @@ -12,7 +12,6 @@ int mixed() { x=d; } -// expected-error@+2 {{#pragma omp nothing' cannot be an immediate substatement}} ---------------- dreachem wrote:
@alexey-bataev That restriction shouldn't apply to the `nothing` directive. The `nothing` directive is not executable, and so is not considered a "stand-alone directive". Note that allowing the insertion of the `barrier` directive in the following would push the call to `f()` outside of the if block; that's why it is restricted: ``` if (x) #pragma omp barrier f(); ``` On the other hand, allowing the `nothing` directive in the following should have no effect on the behavior of the program and therefore should be permitted: ``` if (x) #pragma omp nothing f(); ``` https://github.com/llvm/llvm-project/pull/73690 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits