r/cpp • • Oct 25 '26

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.

20 Upvotes

29 comments sorted by

View all comments

31

u/13steinj Oct 25 '26

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.

4

u/Jealous_Security_362 Oct 25 '26

460 is a fair number to push back with, and I'm not going to defend it. What I'd want to know is how many distinct causes sit behind it. If most of them come from two or three patterns, lambdas, conditionals, loops that reassign, that's an implementation problem someone can fix. If they're spread evenly across the language, the profile isn't ready and no wording change saves it. Did that list break them down by category?

9

u/13steinj Oct 25 '26

Ask /u/seanbaxter ; I don't personally have the energy to entertain spending mt free time investigating one of many implementations / features I do not personally care for (not trying to be dismissive... just I'm not incentivized to fight this fight).

-3

u/germandiago Oct 25 '26

Yes, it is an early prototype...