https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
Méven changed:
What|Removed |Added
CC||meven at kde dot org
--- Comment #10 from Méven
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
roland at gnu dot org changed:
What|Removed |Added
CC||roland at gnu dot org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
--- Comment #8 from CVS Commits ---
The trunk branch has been updated by Marek Polacek :
https://gcc.gnu.org/g:0f8f1dee851c23bce19977b2531cf69b4da9f88f
commit r14-1657-g0f8f1dee851c23bce19977b2531cf69b4da9f88f
Author: Marek Polacek
Date: Thu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
--- Comment #7 from Marek Polacek ---
A similar test. I'm not sure how we want -Wm-f-i to behave here.
#include
struct A {
int a;
std::optional b;
};
int main()
{
auto x = A {
.a = 123 // warns
};
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
--- Comment #6 from Paweł Bylica ---
The workaround is
MyObj obj = {};
which at least suggests some inconsistency in the compiler internals.
For me this warning should be disabled in C++ when designated initializers are
used and all other fie
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
Andrew Pinski changed:
What|Removed |Added
CC||chfast at gmail dot com
--- Comment #5 f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
Pavel Sergeev changed:
What|Removed |Added
CC||dzhioev at gmail dot com
--- Comment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
--- Comment #3 from Jonathan Wakely ---
(In reply to Matt Godbolt from comment #2)
> Thanks: I was confused (as I think will many folks be).
Approximately everybody is confused by -Wmissing-field-initializers which is
why people probably shouldn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
--- Comment #2 from Matt Godbolt ---
Thanks: I was confused (as I think will many folks be). The examples for
designated initialisers in C++20 on cppreference cite this behaviour as being
useful^. Of course I understand it can be misused, and thi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
10 matches
Mail list logo