https://issues.dlang.org/show_bug.cgi?id=12594
Andrej Mitrovic <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Andrej Mitrovic <[email protected]> --- Internal note: >From a quick glance it looks like 'parent' is not set for a non-instantiated template member, which probably makes sense if semantic() was not run on the template. So the call to 'emitAnchorName' won't do much since parent will be NULL. I've ran into a similar problem while fixing Issue 648. I think we should consider implementing a separate ddocSemantic() routine, which will do a minimal amount of semantic analysis just in order to initialize the fields required for proper ddoc output. If you look at my fix for Issue 648 (https://github.com/D-Programming-Language/dmd/pull/1485/files) you'll see I'm running a semantic pass, but since I only need minimal information for ddoc to work it would be less expensive to have a separate and minimal ddocSemantic() routine instead. Any thoughts from other devs? --
