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.
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-
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
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()
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135
Andrew Pinski changed:
What|Removed |Added
Depends on||89976
--- Comment #4 from Andrew Pinski
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.
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.