[Patch] Fix aliasing (/alignment) issue in ext/pb_assoc

Paolo Carlini pcarlini@suse.de
Tue Jan 17 17:38:00 GMT 2006


Hi all, hi Benjamin,

as pointed out by Chris here:

    http://gcc.gnu.org/ml/libstdc++/2005-12/msg00232.html

and discussed a bit here:

    http://gcc.gnu.org/ml/libstdc++/2006-01/msg00013.html

We have got this aliasing/alignment issue, which, as far as I can see,
is a perfect candidate for a neat use of
tr1::aligned_storage/alignment_of. Indeed, the below appear to work
well, and the warning is gone. Any objections to this approach? Would be
for 4.1 branch too.

Thanks,
Paolo.

///////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_aliasing_pb_assoc
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20060117/c8e1c850/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_aliasing_pb_assoc
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20060117/c8e1c850/attachment-0001.ksh>


More information about the Libstdc++ mailing list