[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-18 Thread mlwmohawk at gmail dot com via Gcc-bugs
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

[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-18 Thread mlwmohawk at gmail dot com via Gcc-bugs
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

[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-17 Thread mlwmohawk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953 M W changed: What|Removed |Added Resolution|INVALID |--- Status|RESOLVED

[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-17 Thread mlwmohawk at gmail dot com via Gcc-bugs
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.

[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-17 Thread mlwmohawk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953 M W changed: What|Removed |Added Resolution|INVALID |--- Status|RESOLVED

[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-17 Thread mlwmohawk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953 M W changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-17 Thread mlwmohawk at gmail dot com via Gcc-bugs
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

[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-17 Thread mlwmohawk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953 M W changed: What|Removed |Added Resolution|INVALID |--- Status|RESOLVED

[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-17 Thread mlwmohawk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953 --- Comment #1 from M W --- This also happens on C++

[Bug c/101953] New: bug on the default cast operator from double to unsigned short

2021-08-17 Thread mlwmohawk at gmail dot com via Gcc-bugs
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