https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110816
Bug ID: 110816
Summary: Emit initialization code for empty class under
-ftrivial-auto-var-init
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
As show cased by https://godbolt.org/z/o5asYGq8G, gcc doesn't fill the byte
used by empty class/struct under -ftrivial-auto-var-init. This potentially
leaks a byte of memory.