https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99810
--- Comment #5 from gcc at cookiesoft dot de ---
Alright. Then again, sorry for the noise. I was hunting down a bug and thought
I found it with this one... so I have to search further.
Thank you everyone!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99810
--- Comment #3 from gcc at cookiesoft dot de ---
I actually haven't, but yes, you're right that it will print out the correct
value.
I'm somewhat sorry for the noise.
Is there a reason, e.g. performance, that the .word is "wrong"?
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc at cookiesoft dot de
Target Milestone: ---
Host: x86_64
Target: arm
The following code produces a different result on arm and x86_64:
https://gcc.godbolt.org/z/PPvoscdWa
```
#include
#include
int
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99362
--- Comment #2 from gcc at cookiesoft dot de ---
it's not my code, but a MCVE ;)
I'm using
[tomlplusplus](https://github.com/marzer/tomlplusplus/blob/master/toml.hpp) and
there the constructor is marked as nodiscard.
I may file an i
: unassigned at gcc dot gnu.org
Reporter: gcc at cookiesoft dot de
Target Milestone: ---
Target: arm
The following code will emit a warning on arm 32 bit compilers:
```
struct S {
[[nodiscard]] S() {}
};
int main() {
S s;
}
```
```
: In function 'int main()
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc at cookiesoft dot de
Target Milestone: ---
```
enum class A { X, Y, Z };
int foo(A a) {
switch (a) {
case A::X: return 1;
case A::Y: return 2;
case A::Z: return
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc at cookiesoft dot de
Target Milestone: ---
```
enum class A { X, Y, Z };
int foo(A a) {
switch (a) {
case A::X: return 1;
case A::Y: return 2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87365
--- Comment #1 from gcc at cookiesoft dot de ---
The volatile doesn't Change anything. I guess the combination of if and
Else-while confuses him
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc at cookiesoft dot de
Target Milestone: ---
The following snippet does not detect the unitilialized variable
int foo(volatile int cond) {
int a;
if (cond){
a = 0;
} else {
while (cond) {
a