https://issues.dlang.org/show_bug.cgi?id=6017
--- Comment #18 from [email protected] --- I've found the reason: emitAnchorName() is unable to find the parent symbol of a template member because the .parent pointer is only set when semantic is run, but at the time of ddoc generation, the template may not even be instantiated yet, so all the .parent pointers of the member DSymbol's are NULL. --
