Boost logo

Boost :

Subject: Re: [boost] Bug with gcc and array
From: David Abrahams (dave_at_[hidden])
Date: 2008-11-28 23:41:36


on Mon Nov 24 2008, Andreas Klein <klein-AT-cage.UGent.be> wrote:

> It seams that this resolves the bug. But I can not explain why.
> I tested the code with the intel compiler and it works fine for both
> implementations. So it seams that it is a gcc bug, that the first
> solution do not work. What happens here?

Looks like you should try a few different optimizer settings with GCC
and then inspect the generated assembly code.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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