[llvm-bugs] [Bug 31356] New: ICE on generic lambda, inheritance and trailing return type
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 12 15:09:58 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31356
Bug ID: 31356
Summary: ICE on generic lambda, inheritance and trailing return
type
Product: clang
Version: trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++14
Assignee: unassignedclangbugs at nondot.org
Reporter: michele.caini at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Compiler crashes with the following, minimal example:
template<typename Func>
struct Base: Func {
Base(Func func): Func{func} {}
template<typename... Args>
auto operator()(Args... args)
-> decltype(Func::operator()(args...), void()) {
Func::operator()(args...);
}
};
int main() {
auto l = [](auto &&) {};
Base<decltype(l)> mixin{l};
mixin(0);
}
Note that it works as expected using the following lambda:
auto l = [](int) {};
--
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/20161212/7299fde1/attachment.html>
More information about the llvm-bugs
mailing list