D-Programming-Language/dmd — pull request #3445 by 9rnsr (2014-04-10 07:33:34+00:00)
Title: Issue 11906 - Compiler assertion when comparing function pointers

https://issues.dlang.org/show_bug.cgi?id=11906

If `f->isImportedSymbol()` is true, the translation from `AddrExp(VarExp(f))` to `SymOffExp(f)` in `AddrExp::optimize` will be skipped.
Therefore, the assertion is just wrong.