[Issue 6844] Reinterpret cast of static to dynamic array doesn't work in safe code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 26 07:24:47 PST 2012


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies at gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from yebblies <yebblies at gmail.com> 2012-12-27 02:24:46 EST ---
Slicing a static array is equivalent to taking the address of a local variable,
which is illegal in safed.  The second case works due to bug 8838.

*** This issue has been marked as a duplicate of issue 8838 ***

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