[Bug testsuite/111883] Wstringop-overflow-6.C FAILs with -std=c++26

2023-10-20 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111883 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug testsuite/111883] Wstringop-overflow-6.C FAILs with -std=c++26

2023-10-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111883 --- Comment #7 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:1d9263f292c3efc4e37c3a88117388e86d19b954 commit r14-4799-g1d9263f292c3efc4e37c3a88117388e86d19b954 Author: Marek Polacek Date: Th

[Bug testsuite/111883] Wstringop-overflow-6.C FAILs with -std=c++26

2023-10-20 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111883 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug testsuite/111883] Wstringop-overflow-6.C FAILs with -std=c++26

2023-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111883 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug testsuite/111883] Wstringop-overflow-6.C FAILs with -std=c++26

2023-10-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111883 --- Comment #4 from Jakub Jelinek --- Yeah, that is what I meant. Note, I do see the from_chars inlines even with -std=c++23 in preprocessed dump when including , the difference is in #if __cplusplus > 202302L # include #endif in bits/basic_st

[Bug testsuite/111883] Wstringop-overflow-6.C FAILs with -std=c++26

2023-10-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111883 --- Comment #3 from Marek Polacek --- Did you mean like the following? I have no idea if that's correct but is suppresses the warnings I see. In C++23 I don't see the code in the .ii file at all, so it doesn't warn. --- a/libstdc++-v3/include

[Bug testsuite/111883] Wstringop-overflow-6.C FAILs with -std=c++26

2023-10-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111883 --- Comment #2 from Jakub Jelinek --- Why doesn't it fail with -std=c++23 though? Was there some C++26 change I'm not aware of? In the to_chars cases, we already use float(__value) casts in the _Float16/__bfloat16_t cases (but others too), so I

[Bug testsuite/111883] Wstringop-overflow-6.C FAILs with -std=c++26

2023-10-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111883 --- Comment #1 from Jonathan Wakely --- I think Jakub wrote that code, but it looks like we just want the explicit casts. I can add those.