[llvm-bugs] [Bug 49838] New: operator<=> instantiates for templates when it probably shouldn't and has an issue with constexpr.

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Apr 4 16:27:40 PDT 2021


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

            Bug ID: 49838
           Summary: operator<=> instantiates for templates when it
                    probably shouldn't and has an issue with constexpr.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: denis.yaroshevskij 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

This example: https://gcc.godbolt.org/z/EYcWh7fbG

Gcc compiles it fine but clang tries to instantiate operator<=> (that's never
called).

And also complains about not being able to instantiate a template as constexpr.

-- 
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/20210404/ac9adf38/attachment.html>


More information about the llvm-bugs mailing list