[llvm-bugs] [Bug 49841] New: Clang accepts constraint mismatch at argument in template parameter-list

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 5 07:17:16 PDT 2021


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

            Bug ID: 49841
           Summary: Clang accepts constraint mismatch at argument in
                    template parameter-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

https://godbolt.org/z/vf3Gn5hTK

#include <concepts>

template <std::signed_integral>
struct A {};

template <template <std::integral> typename>
struct B {};

B<A> b;

clang accepts it.

-- 
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/20210405/8f8a950b/attachment.html>


More information about the llvm-bugs mailing list