The header generator prints the name of the implicitly generated member that represents the context pointer as `this` which is obviously not a valid identifier. e.g. --- example.d extern(C++) class Outer { class Inner { } } --- example.h class Outer { public: class Inner { public: Outer* outer; }; };
@MoonlightSentinel created dlang/dmd pull request #13887 "Fix 22934 - Emit context pointer as `this` instead of `this`" fixing this issue: - Fix 22934 - Emit context pointer as `this` instead of `this` Because the latter is obviosly not a valid identifier. https://github.com/dlang/dmd/pull/13887
dlang/dmd pull request #13887 "Fix 22934 - Emit context pointer as `outer` instead of `this`" was merged into master: - cd1017c7e2aed79f5484d4eca93313b60ba40de6 by MoonlightSentinel: Fix 22934 - Emit context pointer as `outer` instead of `this` Because the latter is obviosly not a valid identifier. https://github.com/dlang/dmd/pull/13887