https://bugs.llvm.org/show_bug.cgi?id=40380
Bug ID: 40380
Summary: pack expansion not correctly expended with pointer
types
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++'17
Assignee: unassignedclangb...@nondot.org
Reporter: robin.mou...@gmail.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk
The following code doesn't compile:
```
template<class ...Ts>
auto f3( Range r )
{
auto apply = [&](auto* x){ return x->parse(r); };
return std::tuple{apply((Ts*){})...};
}
```
The following error is returned:
```
<source>:22:37: error: pack expansion does not contain any unexpanded parameter
packs
return std::tuple{apply((Ts*){})...};
~~~~~~~~~~~~~~^
```
Full example (it compiles with gcc):
https://godbolt.org/z/R-M-Kt
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs