[clang] [clang] Fix a crash issue that caused by handling of fields with initializers in nested anonymous unions (PR #113049)

via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 24 08:16:04 PST 2024


yronglin wrote:

Thanks for your review! The latest update add a RecoveryExpr for invalid in-class-initializer. But I have some concerns about the inconsistency between `RecordDecl::hasInClassInitializer()` and  `FieldDecl::hasInClassInitializer()`. FieldDecl has a method `removeInClassInitializer` to modifiy the AST Node.

https://github.com/llvm/llvm-project/pull/113049


More information about the cfe-commits mailing list