[Issue 3091] "auto x = new shared foo" does not compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 12 04:07:46 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3091
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2011-12-12 04:07:44 PST ---
NewExp and StructLiteralExp have this issue.
inout(int) test3091(inout(int) _dummy = 0)
{
struct Foo {}
auto pm = new Foo;
auto pc = new const Foo;
auto pw = new inout Foo;
auto psm = new shared Foo;
auto psc = new shared const Foo;
auto psw = new shared inout Foo;
auto pi = new immutable Foo;
auto m = Foo();
auto c = const Foo();
auto w = inout Foo();
auto sm = shared Foo();
auto sc = shared const Foo();
auto sw = shared inout Foo();
auto i = immutable Foo();
return 0;
}
--
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