[clang] [Clang][OpenMP] Fixed an assertion when `#pragma omp declare simd` or `#pragma omp declare variant` is followed by another OpenMP declarative directive containing a qualified identifier (PR #217875)
Shengxin Pei via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 24 22:06:20 PDT 2026
================
@@ -2214,6 +2214,17 @@ Parser::DeclGroupPtrTy Parser::ParseOpenMPDeclarativeDirectiveWithExtDecl(
<< (DKind == OMPD_declare_simd ? 0 : 1);
return DeclGroupPtrTy();
}
+
+ DeclGroupRef DG = Ptr.get();
----------------
TPPPP72 wrote:
No. The current OpenMP parser stuffs declarations that do not meet positional constraints into a `DeclGroup`, so filtering is performed downstream.
https://github.com/llvm/llvm-project/pull/217875
More information about the cfe-commits
mailing list