Bug 11575 – [dox] std.algorithm.remove navigation link points to wrong place

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-21T18:58:00Z
Last change time
2014-06-24T19:46:32Z
Keywords
ddoc
Assigned to
nobody
Creator
hsteoh

Comments

Comment #0 by hsteoh — 2013-11-21T18:58:01Z
This issue is ultimately caused by Ddoc generating non-unique link anchor ids for identifiers. Anchor ids need to be the fully-qualified identifier, not just the last component, since otherwise a module that contains both a module-level function named 'remove' and a documented enum member named 'remove' (as in this case) will have two identical HTML tag id's, which is both spec-violating and leads to wrong behaviour like the 'remove' link at the top of the page pointing to the wrong version of 'delete' in the documentation body. This isn't specific to std.algorithm, of course; any module that have nested members with the same identifier as a module-level symbol will have this problem.
Comment #1 by hsteoh — 2014-06-24T19:43:31Z
Moreover, overloads on the same identifier will cause the same problem.
Comment #2 by eco — 2014-06-24T19:46:32Z
*** This issue has been marked as a duplicate of issue 6017 ***