[PATCH] D82019: [OPENMP]Fix PR46357: Do not allow types declarations in pragmas.

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 17 10:45:49 PDT 2020


ABataev added a comment.

In D82019#2098509 <https://reviews.llvm.org/D82019#2098509>, @jdoerfert wrote:

> Hm, does the standard say this is not allowed? I can see that we don't want it but I'm not 100% certain here.


It does not say anything specific, but I don't think it is a good idea to declare a new type in the OpenMP directive. But you can still declare a new type in the structured block.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82019/new/

https://reviews.llvm.org/D82019





More information about the cfe-commits mailing list