This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]