Doing pointer math with (void*) is not defined.

For example: http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Pointer-Arith.html 
says that gcc allows it, but this is in the "C Extensions" part of the manual.

I suspect that the latest icc allows it by the same rationale, but it's still 
technically wrong.

I'm just doing a simple build like this:

  ./configure CC=icc CXX=icpc FC=ifort ...

I note that it passes with icc 14.0, but fails with 12.x.

I think (void*) pointer math should be avoided, even if modern compilers allow 
it.


On Oct 9, 2013, at 8:01 AM, Mike Dubman <mi...@dev.mellanox.co.il> wrote:

> Hi,
> We have icc test in jenkins and it passes.
> What icc version do you use and exact command line to configure?
> Is it latest trunk?
> 
> Thanks
> M
> 
> 
> On Tue, Oct 8, 2013 at 5:37 PM, Jeff Squyres (jsquyres) <jsquy...@cisco.com> 
> wrote:
> With icc, getting errors about pointer math with (void*) types.  See attached.
> 
> --
> Jeff Squyres
> jsquy...@cisco.com
> For corporate legal information go to: 
> http://www.cisco.com/web/about/doing_business/legal/cri/
> 
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/devel
> 
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/devel


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/

Reply via email to