[cfe-dev] [llvm-dev] [Release-testers] [5.0.0 Release] Release Candidate 3 tagged

Hans Wennborg via cfe-dev cfe-dev at lists.llvm.org
Mon Aug 28 12:33:04 PDT 2017


I see there's a patch in progress to fix this: https://reviews.llvm.org/D36049

Since the issue was raised so late in the process, I don't think it
will get fixed for 5.0.0 however. Maybe for 5.0.1.

Thanks,
Hans

On Mon, Aug 28, 2017 at 12:40 AM, Dr.-Ing. Christoph Cullmann
<cullmann at absint.com> wrote:
> Hi,
>
> one issue I have with rc3 is that tools using it don't compile with C++17 as public LLVM
> headers seem to use a removed feature, std::pointer_to_unary_function.
>
> [ 12%] Building CXX object tsl/CMakeFiles/tsl.dir/src/generated/combined.cpp.o
> In file included from /local/cullmann/build/eco.default/eco/tsl/src/generated/combined.cpp:3:
> In file included from /local/cullmann/build/eco.default/eco/tsl/src/graph.cpp:29:
> In file included from /local/cullmann/build/eco.default/eco/tsl/include/tsl/graph.h:32:
> In file included from /local/cullmann/build/eco.default/eco/tsl/include/tsl/llvm.h:52:
> In file included from /local/cullmann/build/eco.default/usr/include/llvm/Analysis/BasicAliasAnalysis.h:18:
> In file included from /local/cullmann/build/eco.default/usr/include/llvm/Analysis/AliasAnalysis.h:41:
> In file included from /local/cullmann/build/eco.default/usr/include/llvm/Analysis/MemoryLocation.h:20:
> In file included from /local/cullmann/build/eco.default/usr/include/llvm/IR/CallSite.h:37:
> /local/cullmann/build/eco.default/usr/include/llvm/IR/Instructions.h:4198:26: error: no template named 'pointer_to_unary_function' in namespace 'std'
>   using DerefFnTy = std::pointer_to_unary_function<Value *, BasicBlock *>;
>                     ~~~~~^
> /local/cullmann/build/eco.default/usr/include/llvm/IR/Instructions.h:4199:57: error: use of undeclared identifier 'DerefFnTy'
>   using handler_iterator = mapped_iterator<op_iterator, DerefFnTy>;
>                                                         ^
> /local/cullmann/build/eco.default/usr/include/llvm/IR/Instructions.h:4200:40: error: use of undeclared identifier 'handler_iterator'
>   using handler_range = iterator_range<handler_iterator>;
>                                        ^
> /local/cullmann/build/eco.default/usr/include/llvm/IR/Instructions.h:4202:12: error: no template named 'pointer_to_unary_function' in namespace 'std'
>       std::pointer_to_unary_function<const Value *, const BasicBlock *>;
>       ~~~~~^
> /local/cullmann/build/eco.default/usr/include/llvm/IR/Instructions.h:4204:42: error: use of undeclared identifier 'ConstDerefFnTy'
>       mapped_iterator<const_op_iterator, ConstDerefFnTy>;
>                                          ^
> /local/cullmann/build/eco.default/usr/include/llvm/IR/Instructions.h:4205:46: error: unknown type name 'const_handler_iterator'; did you mean 'const_user_iterator'?
>   using const_handler_range = iterator_range<const_handler_iterator>;
>                                              ^~~~~~~~~~~~~~~~~~~~~~
>                                              const_user_iterator
> /local/cullmann/build/eco.default/usr/include/llvm/IR/Value.h:365:9: note: 'const_user_iterator' declared here
>   using const_user_iterator = user_iterator_impl<const User>;
>
> Greetings
> Christoph



More information about the cfe-dev mailing list