[Issue 1655] New: Internal error: ..\ztc\cgcod.c 1817

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 9 17:31:01 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1655

           Summary: Internal error: ..\ztc\cgcod.c 1817
           Product: D
           Version: 2.007
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: schveiguy at yahoo.com


The following code causes internal error.

void f(int x)
{
  const(char)[] blah = (x == 1 ? "hello".dup : "world");
}

I think it may have something to do with the (?:) statement having both mutable
and invariant args.


-- 



More information about the Digitalmars-d-bugs mailing list