[llvm-bugs] [Bug 49755] New: Clang accepts constraints not satisfied function

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 29 02:04:38 PDT 2021


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

            Bug ID: 49755
           Summary: Clang accepts constraints not satisfied function
           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

https://godbolt.org/z/1eb7axon5

#include <concepts>

template <typename... Ts>
auto f(Ts...) {
  return [](std::same_as<Ts> auto...) {};
}

int main() {
  f(0)(0u);
}

-- 
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/20210329/d80e6223/attachment-0001.html>


More information about the llvm-bugs mailing list