Bug 5197 – Ddoc: access-attributed auto template function crashes dmd
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-11-10T04:02:00Z
Last change time
2015-06-09T05:11:44Z
Keywords
ddoc, ice-on-valid-code
Assigned to
nobody
Creator
kiki
Comments
Comment #0 by kiki — 2010-11-10T04:02:06Z
Trying to generate documents from the following source code
> cat test.d
/// doc comment
public auto f()(){}
> dmd -D test.d
crashed dmd. (I tested with dmd 2.050 on Windows).
- CRASH: protected auto f()(){}
- CRASH: private auto f()(){}
- CRASH: export auto f()(){}
- SAFE: auto f(){}
- SAFE: public void f()(){}
- SAFE: public auto f(){}
Unfortunately, that still doesn't make auto function documentable; they simply vanish from the html.
Comment #3 by clugdbug — 2011-01-20T04:58:58Z
(In reply to comment #2)
> Unfortunately, that still doesn't make auto function documentable; they simply
> vanish from the html.
Yes, but that's bug 2581, which is different from this crashing bug.