[llvm-bugs] [Bug 49173] New: __cpp_lib_experimental_detect feature test macro not defined despite detection idiom API support

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 13 08:53:48 PST 2021


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

            Bug ID: 49173
           Summary: __cpp_lib_experimental_detect feature test macro not
                    defined despite detection idiom API support
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: joeloser93 at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

It seems `__cpp_lib_experimental_detect` feature test macro is not defined in
Clang, despite support for detection idiom API as of November 2016
(https://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20161121/178052.html)

Here is a simple Wandbox example
(https://wandbox.org/permlink/zZy9wvmFk1x4hLLj) that shows the issue. Note that
GCC does define the feature test macro appropriately.

-- 
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/20210213/a47f162b/attachment.html>


More information about the llvm-bugs mailing list