Ville Voutilainen
Ville Voutilainen
See https://bugs.llvm.org/show_bug.cgi?id=34500 The problematic cases should be caught by static analyzers, but are not, because the tools are buggy.
For what it's worth, valgrind and asan catch these misuses when the string is dynamically allocated. When SSO kicks in, they by and large don't, but I have had some...
Yes, I am quite aware of that bug, I reported it. :)
You might want to report a Qt bug about this. Then there's an elevated chance that I'll assign it to myself and fix it.
..except I might not be able to, since these problems where the result of operator- between operators is not the same as the container's difference_type are baked in the ABI.
..or if it's caused by the funny operator- that returns an iterator, that's also ABI-baked.
Okay then. This is caused by qt5 having the wrong difference_type for the iterator, which is not the same as the result of operator-. That's also ABI-baked.
Qt 6 is fine - there the iterator's difference_type and the result of operator- are the same, qsizetype. I was mistaken to talk about the container's difference_type above, that's not...
Yeah. The build process runs an annotation processor, which then uses JTE to generate code from those annotations. To be more specific, this is https://github.com/villevoutilainen/Jenny
This can be closed. I just don't precompile templates, as I use them during a build once, for a code-generation step. See https://doc.qt.io/qt-6/qtjenny.html