On Sat, Aug 21, 2004 at 12:44:03AM -0500, Matthew Dempsky wrote:
> No warning, but the generated code seems incorrect (or at least a
> regression from 3.3) unless ((int *)&val)[x] isn't the correct
> portable way to access a vector element, but there doesn't seem to be
> an alternative that I've been able to deduce (and the documentation
> doesn't list any).

It isn't correct.  Use a union; you're violating the strict-aliasing
rules.

-- 
Daniel Jacobowitz


Reply via email to