www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12804] New: DMD segfault with template parameter

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 puremagic.com
          Reporter: anoneuron 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)

--
May 26 2014