https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111392
Bug ID: 111392 Summary: Implement omp::decl attribute support for C++ Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- The new syntax allows e.g. void foo () { [[omp::decl (declare simd)]] extern int bar (int); bar (0); [[omp::decl (threadprivate)]] static int a, b; static int c [[omp::decl (threadprivate)]]; [[maybe_unused, omp::decl (threadprivate)]] static int d, e; } int f [[omp::decl (declare target, enter)]], g; [[omp::decl (declare target)]] int h, i; which will be very useful e.g. for threadprivate vars with ctors/dtors (which we often reject in pragma syntax), or allocate directive.