[PATCH] D142384: [C++20] Fix a crash with modules.

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 3 12:21:26 PST 2023


rsmith added a comment.

In D142384#4102937 <https://reviews.llvm.org/D142384#4102937>, @hans wrote:

> I don't know if that's expected or not, but maybe that behavior change could be used as an inspiration for a test case.

At least this suggests a way to test this with a C++ unit test: get a `RecordDecl*` referring to a forward declaration of a struct with a definition, and iterate over its fields.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142384



More information about the cfe-commits mailing list