This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Fix aliasing (/alignment) issue in ext/pb_assoc
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, Benjamin Kosnik <bkoz at redhat dot com>
- Date: 17 Jan 2006 12:19:27 -0600
- Subject: Re: [Patch] Fix aliasing (/alignment) issue in ext/pb_assoc
- References: <43CD2BE0.3080802@suse.de>
Paolo Carlini <pcarlini@suse.de> writes:
| 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.
Looks good.
-- Gaby