[Issue 7964] std.algorithm.swap is not CTFE-compatible for structs with non-trivial assignment
https://issues.dlang.org/show_bug.cgi?id=7964 berni44 changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@d-ecke.de Resolution|--- |WORKSFORME --
[Issue 7964] std.algorithm.swap is not CTFE-compatible for structs with non-trivial assignment
https://issues.dlang.org/show_bug.cgi?id=7964 Andrei Alexandrescu changed: What|Removed |Added Keywords||bootcamp CC||and...@erdani.com --
[Issue 7964] std.algorithm.swap is not CTFE-compatible for structs with non-trivial assignment
http://d.puremagic.com/issues/show_bug.cgi?id=7964 timon.g...@gmx.ch changed: What|Removed |Added CC||timon.g...@gmx.ch --- Comment #3 from timon.g...@gmx.ch 2012-05-21 02:52:54 PDT --- (In reply to comment #2) > Changing to a Phobos bug because the error message is perfectly clear; there's > no compiler bug here, and nothing strange going on. Priority reduced from > critical to normal. > > CTFE is complaining because std.algorithm.swap is doing a nasty hack. I'm not > sure if the hack is really valid for structs with postblit. Postblit has to be called when a struct is copied, but not when it is moved. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7964] std.algorithm.swap is not CTFE-compatible for structs with non-trivial assignment
http://d.puremagic.com/issues/show_bug.cgi?id=7964 Don changed: What|Removed |Added Component|DMD |Phobos Platform|x86_64 |All Summary|Organic Bug |std.algorithm.swap is not ||CTFE-compatible for structs ||with non-trivial assignment OS/Version|Linux |All Severity|critical|normal --- Comment #2 from Don 2012-05-21 00:49:58 PDT --- Changing to a Phobos bug because the error message is perfectly clear; there's no compiler bug here, and nothing strange going on. Priority reduced from critical to normal. CTFE is complaining because std.algorithm.swap is doing a nasty hack. I'm not sure if the hack is really valid for structs with postblit. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---