<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 26, 2016 at 8:20 AM, Rory via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I need some help understanding dmd and I'm wondering where I should ask.<br>
<br>
I have made a multiple aliasthis implementation that currently only works for structs. If I try to use a class then the compiler segfaults in .<br>
The implementation basically just changes aggregate.aliasthis to be aggregate.aliasthis(Type expectedType) and then that function picks a matching aliasthis option and returns it.<br>
<br>
Thanks,<br>
Rory<br>
</blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">The segfault was because I forgot to mark one of my new methods as "final", and it was messing with the poffset in baseOf.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I think this is relevant to anyone mixing D and C++, not sure if its for everyone because I'm not sure where poffset comes from. Basically if a struct works and a class causes the compiler to segfault in baseOf when compiling your module, its probably this.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>