D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18787 - ddoc crashes on static foreach
Summary: ddoc crashes on static foreach
Status: RESOLVED DUPLICATE of issue 18211
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-20 15:00 UTC by Paul Backus
Modified: 2018-05-02 21:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Paul Backus 2018-04-20 15:00:58 UTC
Attempting to generate documentation for the following code causes dmd to segfault:

--- test.d
/**
 * The quick brown fox jumps over the lazy dog
 */
struct Test(Args...)
{
    static foreach (T; Args) {}
}
---

$ dmd -D -main test.d
Segmentation fault
$ dmd --version
DMD64 D Compiler v2.079.1
Comment 1 timon.gehr 2018-05-02 21:24:40 UTC

*** This issue has been marked as a duplicate of issue 18211 ***