Skip to content

Conversation

yebblies
Copy link
Contributor

It mangles correctly, but the ABI doesn't match, leading to copious segfaults. At least with the wrong mangling you get link errors.

@@ -1629,7 +1629,7 @@ STATIC void cpp_symbol_name(symbol *s)
}
}
#endif
#if MARS
#if MARS && 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need comment saying why you're doing this. The one from the discussion page will work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed it completely instead. If we ever do get constructors to work cross-language, chances are by then we will have moved the mangling into the frontend anyway.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda like the comment in case this comes up again - nobody is going to look through the history for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done, although chances are if anybody tries to add c++ ctor support, it will be after this has been re-implemented in the frontend.

@yebblies
Copy link
Contributor Author

Added comment.

@yebblies
Copy link
Contributor Author

All green.

ghost pushed a commit that referenced this pull request Nov 20, 2013
[DDMD] Disable constructor and destructor mangling for C++ on win32
@ghost ghost merged commit 8cd91f4 into dlang:master Nov 20, 2013
@yebblies yebblies deleted the tormangle branch November 20, 2013 18:09
@yebblies
Copy link
Contributor Author

Thanks!

@yebblies yebblies added the DDMD label Jul 28, 2014
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants