[PATCH] D132695: [Clang] Avoid crashes when parsing using enum declarations

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 27 09:30:54 PDT 2022


shafik updated this revision to Diff 456128.
shafik marked an inline comment as done.
shafik added a comment.

- Move `DS.SetTypeSpecError()` outside the `if` so that it is always called when the diagnostic is triggered.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132695/new/

https://reviews.llvm.org/D132695

Files:
  clang/lib/Parse/ParseDecl.cpp
  clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p9-0x.cpp
  clang/test/CXX/drs/dr3xx.cpp
  clang/test/Parser/cxx20-using-enum.cpp
  clang/test/Parser/recovery.cpp
  clang/test/Sema/enum.c
  clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp
  clang/test/SemaCXX/enum-scoped.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132695.456128.patch
Type: text/x-patch
Size: 6371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220827/509cf6e0/attachment.bin>


More information about the cfe-commits mailing list