Compiler may erroneously treat current context in OpenMP pragmas as the
context where new type declaration/definition is allowed. But the
declartation/definition of the new types in OpenMP pragmas should not be
allowed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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.
Comment Actions
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.