r/cpp • u/User_Deprecated • Jun 18 '26
GCC 17 Lands Initial Infrastructure For C++29
https://www.phoronix.com/news/GCC-17-std-CPP29-Experimental
130
Upvotes
r/cpp • u/User_Deprecated • Jun 18 '26
View all comments
Show parent comment
5
u/not_a_novel_account cmake dev Jun 18 '26
I think it should be possible to not leak
_IDLstuff into the module initializer, that's what goes instd.obj.Everyone else this is an empty initializer, with the exception of libstdc++ on MacOS which actually does have some global state they initialize.
It's purely bookkeeping for libc++, as the initializer is completely empty for them on all platforms.
I haven't torn into exactly what global state the STL is trying to initialize here beyond "
std::print()will fail without it", something to look into on a long weekend.