This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Handle function declaration or definition omp pragmas in C mode
Needs ReviewPublic

Authored by rpenacob on Mar 28 2022, 7:03 AM.

Details

Reviewers
ABataev
jdoerfert
Summary

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

Event Timeline

rpenacob created this revision.Mar 28 2022, 7:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2022, 7:03 AM
rpenacob requested review of this revision.Mar 28 2022, 7:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2022, 7:03 AM