[dmd-internals] Strange assumption in FuncDeclaration::semantic

Daniel Murphy yebblies at gmail.com
Sat Mar 9 21:52:56 PST 2013


When making other changes to the compiler, I managed to trigger a crash at

https://github.com/D-Programming-Language/dmd/blob/master/src/func.c#L476

The line above calls isFuncDeclaration, then there is no check before using
the result.

Is it valid to assume baseClass->search will always return either null or a
FuncDeclaration?

I think I'm missing something here.

Thanks,
Daniel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-internals/attachments/20130310/8593c84e/attachment.html>


More information about the dmd-internals mailing list