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

Gabriel Dos Reis gdr@cs.tamu.edu
Tue Jan 17 18:17:00 GMT 2006


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



More information about the Libstdc++ mailing list