Re: [Mpi-forum] Giving up on C11 _Generic

2019-08-08 Thread Jeff Squyres (jsquyres) via mpi-forum
Some points: 1. C11 _Generic support in an MPI implementation has to be optional, at least for now, because not all compilers support C11 _Generic (just like the F08 bindings are still optional, and just like aspects of the C++ bindings were optional back in the '90s when C++ compilers still

Re: [Mpi-forum] Giving up on C11 _Generic

2019-08-08 Thread N.M. Maclaren via mpi-forum
On Aug 8 2019, Jeff Hammond wrote: That you use code that does unsafe conversions really has nothing to do with the business of the MPI Forum. Again, if you think C89 is the best C, then use and teach that. No one here is trying to make you use C11. Please don't be infantile. I am

Re: [Mpi-forum] Giving up on C11 _Generic

2019-08-08 Thread Jim Dinan via mpi-forum
In fairness, unsafe conversions are a feature of the C language, I assume since very early on. Assignment gets a pass to do horribly unsafe conversions. Unfortunately, when calling a function (with a prototype), the argument expressions are converted as if by assignment, which is the underlying

Re: [Mpi-forum] Giving up on C11 _Generic

2019-08-08 Thread Jeff Hammond via mpi-forum
That you use code that does unsafe conversions really has nothing to do with the business of the MPI Forum. Again, if you think C89 is the best C, then use and teach that. No one here is trying to make you use C11. Jeff > On Aug 8, 2019, at 5:56 AM, N.M. Maclaren via mpi-forum > wrote: >

Re: [Mpi-forum] Giving up on C11 _Generic

2019-08-08 Thread N.M. Maclaren via mpi-forum
On Aug 7 2019, Jeff Squyres (jsquyres) via mpi-forum wrote: After much debate, the BigCount WG has decided that C11 _Generic just isn't worth it. That's no reason to penalize Fortran, though. That is certainly the simplest solution. There may be others, but see below. At a wild guess, this

Re: [Mpi-forum] Giving up on C11 _Generic

2019-08-08 Thread Gropp, William D via mpi-forum
That -Wall is a lie is also true for gcc. Yes, this is a extremely poor design. If you want to provide -Wmostcommon then do that (and maybe abbreviate to -Wmost). Bill William Gropp Director and Chief Scientist, NCSA Thomas M. Siebel Chair in Computer Science University of Illinois

Re: [Mpi-forum] Giving up on C11 _Generic

2019-08-08 Thread HOLMES Daniel via mpi-forum
Hi JeffH, After a brief search that I never knew was necessary, I find that “all” is smaller than “everything” in clang world. http://clang.llvm.org/docs/UsersManual.html#enabling-all-diagnostics So, my question “why isn’t -Wconversion implied by -Wall?” might have an astonishing answer. The

Re: [Mpi-forum] Giving up on C11 _Generic

2019-08-08 Thread HOLMES Daniel via mpi-forum
Hi Jim, Are we sure the function pointer “worked" in your example? It silently truncated the large value, because the function pointer bypasses the redirection macro. Cheers, Dan. — Dr Daniel Holmes PhD Architect (HPC Research) d.hol...@epcc.ed.ac.uk Phone: +44