[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-22 Thread desmond.rhodes at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 --- Comment #16 from Desmond Rhodes --- (In reply to Andrew Pinski from comment #10) > Again there is no bug in libstdc++. The bug is you are enabling an > questionable clang option that breaks well defined c++ code. I'm sorry, I've done some

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-22 Thread desmond.rhodes at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 --- Comment #17 from Desmond Rhodes --- Anyway, I've found a way to disable UBSan `-fsanitize=integer` for the libstd++. If I make the file `ignorelist.txt`: ``` #!special-case-list-v1 [integer] # src:.*gcc.*include.*c\+\+.* ``` And then co

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-22 Thread desmond.rhodes at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 --- Comment #15 from Desmond Rhodes --- (In reply to Jonathan Wakely from comment #11) > Clang documents how to silence these diagnostics, which are NOT undefined > behaviour. > > The conversion to size_t is 100% portable and well defined by t

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-22 Thread desmond.rhodes at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 --- Comment #20 from Desmond Rhodes --- (In reply to Desmond Rhodes from comment #17) > Anyway, I've found a way to disable UBSan `-fsanitize=integer` for the > libstd++. > > If I make the file `ignorelist.txt`: > > ``` > #!special-case-list-v

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-22 Thread desmond.rhodes at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 --- Comment #18 from Desmond Rhodes --- My issue is solved. Please close this ticket. Also, please let others who might encounter a similar problem in the future of this fix. Thank you for being patient with me. It only took me 3 days, 2 nights

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-22 Thread desmond.rhodes at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 --- Comment #9 from Desmond Rhodes --- Just as a side note, I've never encountered `UndefinedBehaviorSanitizer` triggered by the standard library before. It's only recently with the C++20 and C++23 standards new features that are turning on all

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-22 Thread desmond.rhodes at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 --- Comment #7 from Desmond Rhodes --- (In reply to Andrew Pinski from comment #4) > See PR 91547 also. > > Basically clang's -fsanitize=integer is useless for well defined C/C++ code > and should NOT be used unless you how to filter out the ba

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-22 Thread desmond.rhodes at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 --- Comment #6 from Desmond Rhodes --- (In reply to Andrew Pinski from comment #3) > See PR 97844 also for other places where -fsanitize=integer produces bad > results with libstdc++ and already declared as not going to be dealt with. > > *** T

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-22 Thread desmond.rhodes at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 --- Comment #5 from Desmond Rhodes --- (In reply to Andrew Pinski from comment #1) > Since this is well defined this is not a bug. The bug is clang allows > reporting of this and saying it is undefined. Basically -fsanitize=integer > is broken a

[Bug libstdc++/119429] New: size_t __nargs = -1 in std::format

2025-03-22 Thread desmond.rhodes at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 Bug ID: 119429 Summary: size_t __nargs = -1 in std::format Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++