[Issue 10968] array element copy (1-N and N-N) ignores postblit attributes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 5 02:29:49 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10968
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid, pull
Summary|array copy "1-to-N" |array element copy (1-N and
|by-passes "this(this) |N-N) ignores postblit
|@disable" |attributes
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-09-05 02:29:48 PDT ---
@safe/pure/nothrow attributes also be ignored wrongly.
struct SA
{
this(this)
{
throw new Exception("BOOM!");
}
}
void main() pure @safe nothrow
{
SA ss;
SA[1] sa;
// TOKassign
ss = ss; // correctly fails
sa = ss; // no error
sa = sa; // no error
// TOKconstruct
SA ss2 = ss; // correctly fails
SA[1] sa2 = ss; // no error
SA[1] sa3 = sa; // no 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