- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The minimalist code found here http://en.cppreference.com/w/cpp/utility/functional/function/target cannot be compiled with icpc version 16.0.1 (gcc version 5.0.0 compatibility)
$ icpc -std=c++11 function.cpp
function.cpp(9): error: class "std::function<int (int, int)>" has no member "target"
if (arg.target<std::plus<int>>())
Of course, this compiles fine with clang++ and g++, thoughts ?
Thanks.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the test case and reporting the problem. Indeed it does look like the compiler should be defining the __cpp_rtti feature macro in GNU 5.0 and later compatibility modes. I have entered this our bug tracking database as DPD200381053.
The obvious workaround is to add -D__cpp_rtti to the command line yourself.
Judy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Judy, I've added the CQ to this thread and will update as soon as the release with the fix is out, appreciate much.
_Kittur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Just letting you know that this issue is fixed in the 16.0.3 (update 3) release that was out this week which you can download from the Intel Registration Center and test it out, thanks.
Regards,
Kittur

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page