https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
--- Comment #26 from M W ---
pi@raspberrypi:~ $ gcc -fsanitize=float-cast-overflow -Wall -o badpi badpi.c
-lm
pi@raspberrypi:~ $
That flag doesn't work
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
--- Comment #24 from M W ---
I know it is documented as "undefined," but it is also unexpected without even
a warning. Anyone maintaining code and/or porting to rpi will simply not expect
this behavior. I certainly didn't. I had been using my co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
M W changed:
What|Removed |Added
Resolution|INVALID |---
Status|RESOLVED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
--- Comment #18 from M W ---
I can't believe that this is acceptable. Shocked. in fact.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
M W changed:
What|Removed |Added
Resolution|INVALID |---
Status|RESOLVED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
M W changed:
What|Removed |Added
Status|RESOLVED|UNCONFIRMED
Resolution|INVALID
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
--- Comment #6 from M W ---
"Unexpected because not understanding C/C++ standard is normal these days."
I'm sort of ticked off by that. I have used some form of this code for over two
decades on a lot of different platforms. Mac, Windows, Linu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
M W changed:
What|Removed |Added
Resolution|INVALID |---
Status|RESOLVED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
--- Comment #1 from M W ---
This also happens on C++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953
Bug ID: 101953
Summary: bug on the default cast operator from double to
unsigned short
Product: gcc
Version: 8.3.0
Status: UNCONFIRMED
Severity: normal
10 matches
Mail list logo