[Issue 7892] Compiler-generated struct copies can result in errors when ctor is @disable'd

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 11 19:25:48 PDT 2012


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



--- Comment #1 from Alex Rønne Petersen <xtzgzorex at gmail.com> 2012-04-11 19:26:33 PDT ---
OK, the first one is probably not due to an invisible copy, but rather just a
bug in the assignment analysis (it follows that if the function returns
properly, it must have returned a proper S instance, so the error is wrong).

The second case is only caused when C has an invariant, since the result of
every function is then stored in a temporary in order to call the invariant
before exiting the function.

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