[Issue 3934] Some untidy attributes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 23 07:20:45 PST 2011


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



--- Comment #16 from bearophile_hugs at eml.cc 2011-01-23 07:18:39 PST ---
This shows something strange, dmd 2.051:

const struct Foo1 { int* p; }
struct Foo2 { int* p; }
void bar1(Foo1 f1) {}
void bar2(Foo2 f2) {}
void main() {
    const f1 = Foo1();
    bar1(f1); // no error
    const f2 = Foo2();
    bar2(f2); // error
}

-- 
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