[Bug c++/110752] New: decltype in lambda loses const qualifier unless lambda is mutable

2023-07-20 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110752 Bug ID: 110752 Summary: decltype in lambda loses const qualifier unless lambda is mutable Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/108635] New: Redundant calls to C++ spaceship operator<=> with attribute pure or const

2023-02-02 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108635 Bug ID: 108635 Summary: Redundant calls to C++ spaceship operator<=> with attribute pure or const Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity:

[Bug rtl-optimization/108516] New: Useless movzx instruction emitted when loading 8 bits from 24 bit struct

2023-01-24 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108516 Bug ID: 108516 Summary: Useless movzx instruction emitted when loading 8 bits from 24 bit struct Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity:

[Bug c++/80561] Missed optimization: std::array data is aligned if array is aligned

2023-01-14 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80561 John Zwinck changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2023-01-14 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 80561, which changed state. Bug 80561 Summary: Missed optimization: std::array data is aligned if array is aligned https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80561 What|Removed

[Bug tree-optimization/108406] New: Missed integer optimization on x86-64 unless -fwrapv is used

2023-01-14 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108406 Bug ID: 108406 Summary: Missed integer optimization on x86-64 unless -fwrapv is used Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

[Bug sanitizer/107298] Failure to compile code with std::optional and ASan/UBSan

2022-10-18 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107298 --- Comment #3 from John Zwinck --- Martin, this bug is the only false positive I see in a large corporate codebase. I think your comment makes it sound like this is a documented thing where there are tons of false positives and it's not

[Bug sanitizer/107298] New: Failure to compile code with std::optional and ASan/UBSan

2022-10-17 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107298 Bug ID: 107298 Summary: Failure to compile code with std::optional and ASan/UBSan Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/106926] string_view construction from literal string containing null/zero should warn

2022-09-16 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106926 --- Comment #4 from John Zwinck --- Jonathan, thank you for the discussion, I agree with your points and think adding an attribute for this makes sense.

[Bug c++/106926] string_view construction from literal string containing null/zero should warn

2022-09-15 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106926 --- Comment #2 from John Zwinck --- Jonathan, yes it was a real problem, I wrote such buggy code myself. I was more complacent with string_view than I might have been with std::string because everyone knows string_view doesn't have to be null

[Bug c++/106926] New: string_view construction from literal string containing null/zero should warn

2022-09-13 Thread jzwinck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106926 Bug ID: 106926 Summary: string_view construction from literal string containing null/zero should warn Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: