- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apologies if the issue was already reported but have a look at the following code snippet
#include <variant> std::variant<int, char*> foo() { return 0xD; }
This should compile by choosing the converting constructor overload of the variant whose definition is
template< class T > constexpr variant(T&& t) noexcept(...);
but it does not compile as can be seen here.
Compiler flags used: -std=c++17 -O3 -Wall -Werror
Compiler version: v19.0.1
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for report this issue. I've opened a case (CMPLRIL0-32507) internally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This will be fixed in the next release. I am going to close this thread.

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