[Issue 10727] Regression (dmd-2.061) -- DMD dumps core

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 29 06:34:03 PDT 2013


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



--- Comment #1 from Puneet Goel <puneet at coverify.org> 2013-07-29 06:34:02 PDT ---
Another interesting testcase. Class Frop is not defined, but DMD fails to catch
that. dmd-2.060 works fine.

$ dmd -c test.d # compiles without errors
$ ~/local/dmd-2.060/dmd2/linux/bin64/dmd -c test.d
foo.d(22): Error: undefined identifier Frop
$ cat test.d
import foo;
$ cat foo.d
struct CirBuff(T) {
  import std.traits: isArray;
  CirBuff!T opAssign(R)(R ) if(isArray!R) { }

  T[] toArray() {
    T[] ret = new T[this.length];
    return ret;
  }
  alias toArray this;
}

class Bar (T=int){
  CirBuff!T _bar;
}

class Once {
  Bar!Foo _foobar;
}

class Foo: Frop {}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list