[Bug c++/111499] std::vector less operator< doesn't compile with optimization due to __builtin_memcmp

2023-09-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111499

--- Comment #4 from Jonathan Wakely  ---
(In reply to Michal Lachowicz from comment #2)
> N.B. Bug exists on current release gcc 13.2

Yes, but you're still not using the devel/omp/gcc-12 branch from Git.

[Bug c++/111499] std::vector less operator< doesn't compile with optimization due to __builtin_memcmp

2023-09-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111499

--- Comment #3 from Jonathan Wakely  ---
The only reason it doesn't compile is because you explicitly told the compiler
to make it not compile. This is just a warning, not an error.

[Bug c++/111499] std::vector less operator< doesn't compile with optimization due to __builtin_memcmp

2023-09-20 Thread mlachowicz at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111499

--- Comment #2 from Michal Lachowicz  ---
N.B. Bug exists on current release gcc 13.2

https://godbolt.org/z/zeKbhPY4r

[Bug c++/111499] std::vector less operator< doesn't compile with optimization due to __builtin_memcmp

2023-09-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111499

--- Comment #1 from Jonathan Wakely  ---
N.B. the version is 12.2.0, you're not using the devel/omp/gcc-12 branch in
Git.