[Bug c++/116469] Inconsistent Zero Initialization of Nested Structures

2024-08-23 Thread jonassonarvid02 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116469 --- Comment #3 from Arvid Jonasson --- Modified Example 2 with non-aggregate types: -- #include #include #include template struct Inner { Inner() {} unsigne

[Bug c++/116469] Inconsistent Zero Initialization of Nested Structures

2024-08-23 Thread jonassonarvid02 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116469 --- Comment #2 from Arvid Jonasson --- Quick update: I initially overlooked that the classes were aggregate types, which don't require zero-initialization. However, the issue persists with non-aggregate types. To demonstrate this, I've modified

[Bug c++/116469] Inconsistent Zero Initialization of Nested Structures

2024-08-23 Thread jonassonarvid02 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116469 --- Comment #1 from Arvid Jonasson --- Created attachment 58981 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58981&action=edit Example 2 preprocessed