[llvm-bugs] [Bug 49792] New: Constrains not work on structural	binding
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Wed Mar 31 11:18:15 PDT 2021
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=49792
            Bug ID: 49792
           Summary: Constrains not work on structural binding
           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
clang accepts this code:
template <class> concept C = false;
struct S { int a, b; };
C auto&& [a, b] = S{};
https://godbolt.org/z/1re7vToqY
-- 
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/20210331/759ce616/attachment.html>
    
    
More information about the llvm-bugs
mailing list