[cfe-dev] clang finds errors in its own header files

paul via cfe-dev cfe-dev at lists.llvm.org
Fri Dec 23 13:57:06 PST 2016


Hi James,

Thanks,

I do include the -std=c++11 as a habit.

I have been trying all afternoon to get this to work.

I am wondering now if there is a step missing which describes the target 
OS? Xcode links to a number of SDK's when producing OS X Bundles ( 
test.app ).


On 2016-12-23 5:43 PM, James Dennett wrote:
> On Fri, Dec 23, 2016 at 1:40 PM, icloud via cfe-dev 
> <cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>> wrote:
>
>     Hi Don,
>
>     I removed the extra "-I" directives but I still get the same result.
>
>
> This looks somewhat different to me.
>
>     In file included from /usr/local/include/llvm/ADT/APInt.h:20:
>     /usr/local/include/llvm/Support/MathExtras.h:248:1: error: unknown
>     type name 'constexpr'
>     constexpr inline uint32_t Hi_32(uint64_t Value) {
>
>
> You need to specify -std=c++11 (or later) as a compiler option to get 
> `constexpr` support.  You probably want to do that anyway.
>
> -- James
>

-- 

Paul

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161223/45612204/attachment.html>


More information about the cfe-dev mailing list