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



--- Comment #18 from bearophile_h...@eml.cc 2011-01-23 16:18:58 PST ---
Another variant of the code, found by Dan Olson, this compiles and runs with no
errors with DMD 2.051:

struct Foo { int x; }
void bar(ref Foo f) { f.x = 1; }
void main() {
    const f = Foo();
    bar(f);
}

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

Reply via email to