[Openmp-dev] [LLVMdev] OpenMP - C source files which are really c++

Eric Christopher echristo at gmail.com
Wed May 6 23:39:09 PDT 2015


C11 != C++11

-eric

On Wed, May 6, 2015 at 11:38 PM C Bergström <cbergstrom at pathscale.com>
wrote:

> Am I mistaken in that some .c files must actually be compiled as c++?
>
> In file included from openmp-llvm/runtime/src/kmp_ftn_cdecl.c:16:
> openmp-llvm/runtime/src/kmp.h:210:3: warning: redefinition of typedef
> 'ident_t' is a C11 feature [-Wtypedef-redefinition]
> } ident_t;
>   ^
> ----------
> I previously sent a patch that fixes this and it was completely rejected.
>
> IMHO - This must be fixed
> 1) C files should be renamed .cxx, .cpp or something correct
> or
> 2) Make .c files be treated as c++ lang in cmake
> or
> 3) Stop using c++(11) inside c files
>
> Please let me know if I'm mistaken. I've only looked at the warnings
> and now recent errors as a result.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150507/b0834bff/attachment.html>


More information about the Openmp-dev mailing list