[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-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 c++/120135] New: Strange -Wunitialized behavior with struct

2025-05-06 Thread andrew.bell.ia at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: andrew.bell.ia at gmail dot com Target Milestone: --- The following code (Goldbolt) reports a warning with -Wuninitialized despite the fact that an explicit constructor has been called. Strangely, this only happens if the

[Bug c++/111103] gcc accepts bad type syntax

2023-08-22 Thread andrew.bell.ia at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=03 --- Comment #4 from Andrew Bell --- What is the purpose of the extension?

[Bug c++/111103] New: gcc accepts bad type syntax

2023-08-22 Thread andrew.bell.ia at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: andrew.bell.ia at gmail dot com Target Milestone: --- The following code is accepted by gcc 13.2 as confirmed by compiler explorer (x86_64 or ARM): typedef long long U8; long long f() { U8 long long i = 23; return i; }

[Bug libstdc++/95245] New: std::sort copies custom comparator

2020-05-20 Thread andrew.bell.ia at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: andrew.bell.ia at gmail dot com Target Milestone: --- std::sort copies a custom comparator numerous times. If the comparator copy is expensive, it makes the sort very slow. Of course, making the comparator cheap to copy is an