[llvm-bugs] [Bug 40495] New: is_invokable_v<void> does not compile

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 28 06:26:42 PST 2019


            Bug ID: 40495
           Summary: is_invokable_v<void> does not compile
           Product: libc++
           Version: 7.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alisdairm at me.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

The simple test expression:
is expected to compile, but libc++ rejects this as 'void' is not a complete

According to the standard, the requirements on "Fn" are:

"Fn and all types in the template parameter pack ArgTypes shall be complete
types, cv void, or arrays of unknown bound."

This may be boiler-plate standardese for handling incomplete types that merits
an LWG issue instead, but note that gcc handles this case correctly.

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/20190128/34f1a730/attachment-0001.html>

More information about the llvm-bugs mailing list