[llvm-bugs] [Bug 47119] New: ICE: is_invocable_v (access via :: of non static member)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 11 09:41:08 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47119
Bug ID: 47119
Summary: ICE: is_invocable_v (access via :: of non static
member)
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: familiebaumanns at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Created attachment 23840
--> https://bugs.llvm.org/attachment.cgi?id=23840&action=edit
compiler output
Clang++ front-end crashes with the following code:
Compilation command: clang++ -std=c++17 sample.cpp
See here on godbolt: https://godbolt.org/z/o1xjK8
Code:
=================
```
#include <type_traits>
struct S {
void Func() {
}
};
#include <iostream>
int main()
{
auto lambda = [](const auto& cls) -> decltype(
std::remove_const_t<std::remove_reference_t<decltype(cls)>>::Func()
) {};
auto isInv = std::is_invocable_v<decltype(lambda), S>;
if (!isInv){
std::cout << "detected correctly";
}
return 0;
}
```
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200811/8de0c7fd/attachment.html>
More information about the llvm-bugs
mailing list