From: David Abrahams (dave_at_[hidden])
Date: 2003-02-12 17:03:01
Beman Dawes <bdawes_at_[hidden]> writes:
> I've gone ahead and committed the change to CVS, but wonder if this is
> really the option Ron wanted?. Intel's docs say:
> >-Qansi_alias directs the compiler to assume the following:
> >Arrays are not accessed out of bounds.
> >Pointers are not cast to non-pointer types, and vice-versa.
> >References to objects of two different scalar types cannot alias. For
> >example, an object of type int cannot alias with an object of type float,
> >or an object of type float cannot alias with an object of type double.
> >If your program satisfies the above conditions, setting the -Qansi_alias
> >flag will help the compiler better optimize the program. However, if
> your >program does not satisfy one of the above conditions, the
> -Qansi_alias flag
> >may lead the compiler to generate incorrect code.
Seems to me it can't possibly be what Ron was after; that's all
optimization-related stuff, not diagnostic-related as Ron wants.
However, Ron was asking about Intel C++ for Linux; I presume you were
messing with the windows version?
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk