Boost logo

Boost :

Subject: Re: [boost] [1.41.0] [spirit] [serialisation] Beta 1releasecandidate
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2009-11-04 10:08:09


> >> ./boost/spirit/home/classic/core/scanner/scanner.hpp:132: warning:
> >> dereferencing pointer 'val' does break strict-aliasing rules
> >>
> >> Again, this is normally a bug once optimizations are turned on.
> >
> > It's the first time I'm seeing this problem in Spirit. We need to
> > investigate this more closely as the warning comes from a template
> > function
> > (and 'val' is a template parameter), so I assume the issue is in the
> code
> > using Spirit. What file produces this diagnostic?
>
> It's from the serialization build:
>

[snipped warnings]

Will investigate.

> Note that this warning only shows up in release mode.
>
> Harmut, while I have your attention, maybe the largest slew of warnings
> (in
> terms of lines of output) are coming from wave, the first one reads:
>
> gcc.compile.c++

[snipped warnings]

> I'm not going to attempt to post the rest as there are 100's of K of
> them
> :-(

Hmm, I'm not seeing these warnings (Windows, gcc 4.4.1, MingW) while
compiling with -O3. What other command line options do I need to specify?

Thanks!
Regards Hartmut

-------------------
Meet me at BoostCon
http://boostcon.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk