$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [Spirit] dereferencing type-punned pointer will break strict-aliasing rules
From: Roland Bock (rbock_at_[hidden])
Date: 2010-08-11 04:37:17
Hi,
compiling the attached example with gcc-4.4.3 (Ubuntu 10.4, 64bit) with
-Wall -O3
leads to a long warning message (second attachment), culminating in
boost/1.44/include/boost/function/function_base.hpp:321: warning:
dereferencing type-punned pointer will break strict-aliasing rules
boost/1.44/include/boost/function/function_base.hpp:325: warning:
dereferencing type-punned pointer will break strict-aliasing rules
I wonder how I could avoid this without -fno-strict-aliasing or
-Wno-strict-aliasing?
Thanks and regards,
Roland