Clang crashes when a C++ like struct with a declare variant or declare simd pragma is parsed in C mode. Skip the pragma in this situation and leave the parser emit a diagnostic.
Diff Detail
Diff Detail
Paths
| Differential D122585
[OpenMP] Handle function declaration or definition omp pragmas in C mode Needs ReviewPublic Authored by rpenacob on Mar 28 2022, 7:03 AM.
Revision Contents
Diff 418575 clang/lib/Parse/ParseOpenMP.cpp
clang/test/OpenMP/declare_simd_messages.c
clang/test/OpenMP/declare_variant_messages.c
|