www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13417] New: segmentation fault when deduce template type

https://issues.dlang.org/show_bug.cgi?id=13417

          Issue ID: 13417
           Summary: segmentation fault when deduce template type
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: zfdareq yandex.ru

Created attachment 1411
  --> https://issues.dlang.org/attachment.cgi?id=1411&action=edit
gdb output

[code]
struct Vector(size_t N,E,alias string AS) { }
auto someFunc(E)( in Vector!(4,E,"ijka") ) { return Vector!(3,E,"xyz")(); }
void main() { someFunc( Vector!(4,float,"ijka")() ); }
[/code]

% dmd fnc.d
zsh: segmentation fault (core dumped)  dmd fnc.d

if change line 3 
[code]
void main() { someFunc!float( Vector!(4,float,"ijka")() ); }
[/code]
program compiles

% dmd -v
DMD64 D Compiler v2.066.0

--
Sep 02 2014