D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 12804 - DMD segfault with template parameter specialisation 'typeof(T.init)'
Summary: DMD segfault with template parameter specialisation 'typeof(T.init)'
Status: RESOLVED DUPLICATE of issue 12748
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P1 normal
Assignee: No Owner
URL:
Keywords: ice
Depends on:
Blocks:
 
Reported: 2014-05-26 07:31 UTC by Cauterite
Modified: 2014-08-01 10:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Cauterite 2014-05-26 07:31:42 UTC
compiler crashes (segfault) and outputs nothing with this code:

template Foo(T1, T2 : typeof(T1.init)) {};

tested on Windows XP 32-bit with DMD 2.065.0; %errorlevel% is -1073741819
tested on DPaste with DMD 2.065.0 (http://dpaste.dzfl.pl/c99c82b8501b); return code is 11
tested on DPaste with LDC 2.063 (http://dpaste.dzfl.pl/903b69e7602f); same return code, but also emitted a stack trace (as you can see on the DPaste page)
Comment 1 Kenji Hara 2014-08-01 10:42:07 UTC

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