Issue with union initialization using braces #2033
Labels
[BUG] llvm
A bug that should be fixed in upstream LLVM
[PATCH] Submitted
A patch has been submitted for review
Reported upstream
This bug was filed on LLVM’s issue tracker, Phabricator, or the kernel mailing list.
A recent thread reveals that a union where the first member is not the largest member may not be initialized fully with either
{}
or{ 0 }
, which Linus considers a bug for the kernel. It sounds like there is not much opposition for default initializing the first member and zero initializing the rest of the union from some discussion on the upstream LLVM tracker.The text was updated successfully, but these errors were encountered: