[llvm-bugs] [Bug 49593] New: Parameter packs not expanded in lambda template list

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 15 05:23:34 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49593

            Bug ID: 49593
           Summary: Parameter packs not expanded in lambda template list
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hewillk at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

The following code intends to work, even if it fails in three major compilers:

template <typename... Ts> 
void f(Ts...) {
  ([]<Ts>(){}, ...);  
}

int main() { f(0, 0.5); }

(goldbot: https://godbolt.org/z/xnM9dY)

-- 
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/20210315/8f78870c/attachment.html>


More information about the llvm-bugs mailing list