[Issue 18916] New: ICE using Typedef and __LINE__

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 30 09:21:36 UTC 2018


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: nobody at puremagic.com
          Reporter: trikkuz at 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__

--


More information about the Digitalmars-d-bugs mailing list