[llvm-bugs] [Bug 49851] New: std::is_constant_evaluated() evaluated to false in concepts

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 5 18:33:31 PDT 2021


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

            Bug ID: 49851
           Summary: std::is_constant_evaluated() evaluated to false in
                    concepts
           Product: clang
           Version: 11.0
          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/hqK1vWMof

#include <type_traits>

template <typename T>
concept C = std::is_constant_evaluated();

static_assert(C<void>);

clang rejects 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/20210406/7ee1b4d3/attachment-0001.html>


More information about the llvm-bugs mailing list