I vehemently disagree with the assertion that private codebases are a narrow case.
> Could LLMs develop good coding practices for C++23 just by looking at the STL/Compiler sources if it was trained with 90s C++ ?
I don't know about "good" (subjective measure), but I intuit an LLM trained on C++98 could get a C++23 codebase to compile (an objective metric an LLM agent can measure) based on documentation, compiler error messages, and looking at sources.
I bet there are lots of natural experiments on this, e.g. running an open-weight model against a language version released after model was released; I bet DeepSeek R1/Gemma3/Qwen3/gpt-oss could work with PHP 8.5/8.6 code - pipe operator included - even though PHPv8.5 was released months after the models themselves.