[Bug c++/82552] No warning when using uninitialized values in initializer list

2017-10-14 Thread s-beyer at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82552 --- Comment #2 from Stephan Beyer --- I had expected this but I could not find the specific one. (I found a few related ones that were resolved as FIXED.)

[Bug c++/82552] New: No warning when using uninitialized values in initializer list

2017-10-14 Thread s-beyer at gmx dot net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: s-beyer at gmx dot net Target Milestone: --- Hi, the following code example is pretty harmless but the underlying issue took me quite some time to debug in real code (where

[Bug c++/80827] New: False strict-aliasing warning with certain settings

2017-05-19 Thread s-beyer at gmx dot net
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: s-beyer at gmx dot net Target Milestone: --- Hi, $ cat foo.cc #include template void foo() { std::istringstream ss("a\nb\nc"); std::string attr; while (std::getline(ss, attr));

[Bug c++/80267] New: Compiling aborts when template/auto/lambda occur in some way

2017-03-30 Thread s-beyer at gmx dot net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: s-beyer at gmx dot net Target Milestone: --- Hi, g++ 7.0.1 asks me for reporting a bug, so I do it. I have the following minimal example: $ cat gcc-bug.cpp #include struct Outer

[Bug c++/79877] -Wstrict-overflow false positive or misunderstanding?

2017-03-05 Thread s-beyer at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79877 --- Comment #2 from Stephan Beyer --- Hi, (In reply to Marc Glisse from comment #1) > The message seems pretty clear to me. gcc has an optimization that turns > i-1>i into false, and is telling you that it applied it (not that there is >

[Bug c++/79877] New: -Wstrict-overflow false positive or misunderstanding?

2017-03-05 Thread s-beyer at gmx dot net
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: s-beyer at gmx dot net Target Milestone: --- Hi, I have the following code: $ cat foo.cc #include static int strict_overflow_warning(int bitmask) { int max = -1; for (int i = 31; i > max

[Bug middle-end/68336] False positive Wreturn-type warning

2017-01-10 Thread s-beyer at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68336 Stephan Beyer changed: What|Removed |Added CC||s-beyer at gmx dot net --- Comment #3

[Bug inline-asm/78487] asm cpuid code and -fgcse crashes

2016-11-23 Thread s-beyer at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78487 Stephan Beyer changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug inline-asm/78487] asm cpuid code and -fgcse crashes

2016-11-23 Thread s-beyer at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78487 --- Comment #5 from Stephan Beyer --- It crashes on run-time. I have absolutely no experience using extended asm syntax but I guess g++ relies on the constraints for its optimization, so I guess the constraints are wrong. I will port the code

[Bug inline-asm/78487] asm cpuid code and -fgcse crashes

2016-11-22 Thread s-beyer at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78487 --- Comment #2 from Stephan Beyer --- The following problem is only reproducible on one machine. I cannot reproduce it on any other machine. When compiling the attached C++ source file with g++ -O1 -fgcse, it crashes at the third cpuid call

[Bug c++/78487] New: asm cpuid code and -fgcse crashes

2016-11-22 Thread s-beyer at gmx dot net
++ Assignee: unassigned at gcc dot gnu.org Reporter: s-beyer at gmx dot net Target Milestone: --- Created attachment 40123 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40123=edit the C++ source