Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7957 Discussions

std::is_function ignores noexcept variants

Patnaik__Bvsk
Beginner
354 Views

This is my first time posting on the forum. So please correct me if I do not conform to the forum's guidelines.

Code snippet

#include <type_traits>
static_assert(std::is_function_v<void() noexcept>);

I do not have any OS information since I used icc v19.01 from godbolt.org.

This static assert fails with icc v19 but the same is not the case with gcc or clang compilers. Compiler flags used -std=c++17 -O3

Is this issue fixed in a later version? If yes, which version is this fixed? How would I retrieve such information in the future when required? Thanks!!!

0 Kudos
1 Reply
Viet_H_Intel
Moderator
354 Views

I checked the latest version and the issue is still seen.

I've reported it to our Developer (CMPLRIL0-32401) . Will keep you updated.

0 Kudos
Reply