[Issue 12804] New: DMD segfault with template parameter specialisation 'typeof(T.init)'
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 26 00:31:42 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12804
Issue ID: 12804
Summary: DMD segfault with template parameter specialisation
'typeof(T.init)'
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Keywords: ice
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: anoneuron at gmail.com
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)
--
More information about the Digitalmars-d-bugs
mailing list