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 #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()
++
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=03
--- Comment #4 from Andrew Bell ---
What is the purpose of the extension?
++
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;
}
++
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