Bug 12804 – DMD segfault with template parameter specialisation 'typeof(T.init)'

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2014-05-26T07:31:00Z
Last change time
2014-08-01T10:42:07Z
Keywords
ice
Assigned to
nobody
Creator
cauterite

Comments

Comment #0 by cauterite — 2014-05-26T07:31:42Z
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 by k.hara.pg — 2014-08-01T10:42:07Z
*** This issue has been marked as a duplicate of issue 12748 ***