[Bug c/99810] Wrong const evaluation of 64-bit division

2021-03-29 Thread gcc at cookiesoft dot de via Gcc-bugs
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!

[Bug c/99810] Wrong const evaluation of 64-bit division

2021-03-29 Thread gcc at cookiesoft dot de via Gcc-bugs
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"?

[Bug c/99810] New: Wrong const evaluation of 64-bit division

2021-03-29 Thread gcc at cookiesoft dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99810 Bug ID: 99810 Summary: Wrong const evaluation of 64-bit division Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c++/99362] invalid unused result

2021-03-03 Thread gcc at cookiesoft dot de via Gcc-bugs
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 issue there.

[Bug c++/99362] New: invalid unused result

2021-03-03 Thread gcc at cookiesoft dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99362 Bug ID: 99362 Summary: invalid unused result Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: un