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

James Dennett via cfe-dev cfe-dev at lists.llvm.org
Fri Dec 23 13:43:32 PST 2016


On Fri, Dec 23, 2016 at 1:40 PM, icloud via cfe-dev <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161223/b7a485c9/attachment.html>


More information about the cfe-dev mailing list