[Issue 13417] New: segmentation fault when deduce template type

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 2 10:34:22 PDT 2014


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 at puremagic.com
          Reporter: zfdareq at 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

--


More information about the Digitalmars-d-bugs mailing list