[Issue 10750] Strict aliasing semantics

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 2 13:39:50 PDT 2013


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


Johannes Pfau <johannespfau at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johannespfau at gmail.com


--- Comment #2 from Johannes Pfau <johannespfau at gmail.com> 2013-11-02 13:39:44 PDT ---
Such a PointerCast is not safe in all cases when compiling with GDC as even
unions are not an exception to strict aliasing rules:
http://stackoverflow.com/questions/2906365/gcc-strict-aliasing-and-casting-through-a-union

I'm not sure if it's possible to change this in the GDC frontend.

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