E.g., from frontend.h: enum class PASS { inline = 7 // needs to be sanitized to `inline_` or so }; See https://en.cppreference.com/w/cpp/keyword.
@MoonlightSentinel created dlang/dmd pull request #12122 "Fix 21530 - dtoh: Sanitize identifiers wrt. reserved C++ keywords" fixing this issue: - Fix 21530 - dtoh: Sanitize identifiers wrt. reserved C++ keywords Extends the check for C++ keywords to append an underscore instead of raising an error whenever the actual name doesn't matter for binary compatibility. https://github.com/dlang/dmd/pull/12122
dlang/dmd pull request #12122 "Fix 21530 - dtoh: Sanitize identifiers wrt. reserved C++ keywords" was merged into master: - 843bc8549e264b9a4b127a6da8f98524d52f23b1 by MoonlightSentinel: Fix 21530 - dtoh: Sanitize identifiers wrt. reserved C++ keywords Extends the check for C++ keywords to append an underscore instead of raising an error whenever the actual name doesn't matter for binary compatibility. https://github.com/dlang/dmd/pull/12122