[llvm-bugs] [Bug 50712] New: Out of line definition mismatch due to incorrect type equivalence check

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 15 00:43:34 PDT 2021


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

            Bug ID: 50712
           Summary: Out of line definition mismatch due to incorrect type
                    equivalence check
           Product: clang
           Version: 12.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nvlb at tutanota.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

When declaring a class A's constructor constrained to check for type
equivalence of the underlying value_type of a passed-in iterator with an
in-class defined nested struct B, the out of line definition of this
constructor does not match the function declaration in class using same_as<>
concept, with both A and B being templated.

A more detailed description is on stackoverflow.
https://stackoverflow.com/questions/67965118/c-concepts-sfinae-clang-and-msvc-g-different-results-for-out-of-line-functi

A brief test case is provided at https://godbolt.org/z/fdqEYxKh8.

-- 
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/20210615/7404acbb/attachment.html>


More information about the llvm-bugs mailing list