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

          Issue ID: 18916
           Summary: ICE using Typedef and __LINE__
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: trik...@gmail.com

This code:

import std.typecons: Typedef;
alias Line = Typedef!int;

void foo(Line line = __LINE__) { }

void main(){ foo(); }

On DMD:
__LINE__
Illegal instruction (core dumped)

On LDC2:
Error: Internal compiler error: Type Expression not implemented: __LINE__

--

Reply via email to