[Webkit-unassigned] [Bug 28391] Incorrect casts in JavaScriptCore with gcc-3.4
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 21 11:31:00 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=28391
Joe Mason <joe.mason at torchmobile.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |joe.mason at torchmobile.com
--- Comment #5 from Joe Mason <joe.mason at torchmobile.com> 2009-08-21 11:31:00 PDT ---
This post seems to quote the relevant sections of the standard:
http://learningcppisfun.blogspot.com/2008/07/c-unions-can-have-functions.html
It concludes that it's legal to do this cast as long as both members are POD
types or structs containing only POD types with the same layout. So whether
this cast is legal or not depends on what FROM and TO are.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list