[Issue 1787] New: Compiler segfaults on circular references.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 15 02:54:42 PST 2008


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

           Summary: Compiler segfaults on circular references.
           Product: D
           Version: 1.024
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: aziz.kerim at gmail.com


// Code snippets which kill dmd.
struct A
{ const a = B.b; }
struct B
{ const b = A.a; }

struct C
{
  const x = C.x;
}

// Some examples which don't segfault. The compiler reports errors as it
should.
const x = x;
const a = b;
const b = a;


-- 



More information about the Digitalmars-d-bugs mailing list