www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14240] New: Segfault while compiling templated code

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

          Issue ID: 14240
           Summary: Segfault while compiling templated code
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: lord_sigma live.de

Created attachment 1479
  --> https://issues.dlang.org/attachment.cgi?id=1479&action=edit
GDB's backtrace

Dustmited source:
-----
// A.d
struct C(string E ) {}

import std.typetuple;

alias I = TypeTuple!(C!K);

enum K = M;
-----
DMD version 2.066 and git crash on my system whenever I try to run dmd A.d .

GDB's backtrace:



unsigned long, Array<TemplateParameter*>*, Array<RootObject*>*, Declaration**)
()

TemplateInstance*, Array<RootObject*>*, Array<Expression*>*, int) ()

Array<Expression*>*)::ParamBest::fp(void*, Dsymbol*) ()

Dsymbol*)) ()

Array<Expression*>*) ()

Array<Expression*>*) ()

Type**, Dsymbol**, bool) ()

Array<RootObject*>*, int) ()

.part.55] ()

Array<Expression*>*) ()

Type**, Dsymbol**, bool) ()







--
Mar 03 2015