[v3] fix locale_init aliasing warning

Benjamin Kosnik bkoz@redhat.com
Wed Jan 7 02:11:00 GMT 2009


Return placement construction in locale::classic. Removing:

/home/bje/source/gcc-trunk/libstdc++-v3/src/locale_init.cc:247:
warning: dereferencing type-punned pointer will break strict-aliasing
rules

Pointed out by Ben Elliston.

tested x86_64/linux

-benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20090106-1.patch
Type: text/x-patch
Size: 1064 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090107/ba616f5e/attachment.bin>


More information about the Libstdc++ mailing list