[Bug tree-optimization/120135] Strange -Wuninitialized behavior with struct

2025-05-07 Thread andrew.bell.ia at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135 --- Comment #9 from Andrew Bell --- As a note, this code doesn't evoke a warning on any other compiler/target that I tried.

[Bug tree-optimization/120135] Strange -Wuninitialized behavior with struct

2025-05-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135 --- Comment #8 from Andrew Pinski --- (In reply to Manuel López-Ibáñez from comment #7) > I cannot see the warning with x86-64 gcc 15.1 (or trunk or 14.1 or 12.1). > > Maybe ARM GCC is doing something different? But this should not be > target-

[Bug tree-optimization/120135] Strange -Wuninitialized behavior with struct

2025-05-07 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comme

[Bug tree-optimization/120135] Strange -Wuninitialized behavior with struct

2025-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/120135] Strange -Wuninitialized behavior with struct

2025-05-06 Thread andrew.bell.ia at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135 --- Comment #5 from Andrew Bell --- The emitted warning is somewhat confusing because it doesn't reference the constructor, which is where the initialization is missing. Also, this generates no warning: struct S { int i_; double d_; S()

[Bug tree-optimization/120135] Strange -Wuninitialized behavior with struct

2025-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135 Andrew Pinski changed: What|Removed |Added Depends on||89976 --- Comment #4 from Andrew Pinski

[Bug tree-optimization/120135] Strange -Wuninitialized behavior with struct

2025-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135 --- Comment #3 from Andrew Pinski --- Also the warning is correct. Let me digg into this slightly since I think there is another bug report saying there is a missing warning due to SRA.

[Bug tree-optimization/120135] Strange -Wuninitialized behavior with struct

2025-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135 --- Comment #2 from Andrew Pinski --- The warning is correct. SRA makes some odd decisions which causes the diagnostic to sometimes show up and sometimes does not show up.