[Issue 7964] std.algorithm.swap is not CTFE-compatible for structs with non-trivial assignment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 21 00:48:23 PDT 2012


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


Don <clugdbug at yahoo.com.au> 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 <clugdbug at yahoo.com.au> 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: -------


More information about the Digitalmars-d-bugs mailing list