Question Details

No question body available.

Tags

c++ c++23 c++-modules

Answers (1)

January 26, 2026 Score: -1 Rep: 39,643 Quality: Low Completeness: 10%

It could be how MSVC keeps the list of resolved symbols and it is leaking when the second printf is resolved.

Resolving std::printf causes the compiler to load the metadata for the underlying printf symbol into its current symbol table. It could be that once the symbol metadata for printf has been loaded to satisfy the std::printf lookup, the compiler may inadvertently make it available for unqualified lookups in the global namespace as well.