[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 27 05:53:15 PDT 2024


cor3ntin wrote:

Neither GCC, EDG nor MSVC agree with us https://godbolt.org/z/Wqrhnz63a
The behavior of GCC is a bit weird but I am pretty sure the last two tests should pass
@hubert-reinterpretcast 

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


More information about the cfe-commits mailing list