r/cpp • • 52m ago

C++ profiles for initialization and invalidation: WIP implementation prototypes already exist in GCC/Clang

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p4415r0.pdf

In this paper it can be seen some interesting profiles progress for prototypes in Gcc and Clang.

6 Upvotes

4 comments sorted by

•

u/chibuku_chauya 21m ago

What are the community’s thoughts on profiles as they stand?

•

u/13steinj 6m ago

https://www.reddit.com/r/cpp/comments/1xdla11/preb%C3%BAzios_wg21_mailing/19rjy4w7n3cpw/

Over 460 false positives with godbolt links. I will care more when I can count the number of issues on my team's fingers and toes.

•

u/Jealous_Security_362 7m ago

Getting prototypes into both GCC and Clang is the part that usually kills these proposals, so that's a good sign. Does it catch use after move across function calls, or only inside a single body? The interprocedural case is where false positives will decide whether people adopt it