================
@@ -32,8 +32,8 @@ T tmain(T argc) {
}
switch (argc) {
#pragma omp error // expected-error {{ERROR}}
- case 1:
-#pragma omp error // expected-error {{ERROR}}
+ case 1: // FIXME: error without 'at execution' is not a stand-alone
directive and so this should be accepted.
----------------
mikerice1969 wrote:
I would remove this FIXME. I think we want 'error' to be diagnosed. The
original meaning of stand-alone was directives that did not has associated user
statements. This was before utility/informational directives existed. I think
the intention is we only allow executable statements with associated user
statements here, not declarative, utility, etc.
https://github.com/llvm/llvm-project/pull/71398
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits