[llvm-bugs] [Bug 44936] New: Accepts-invalid with unexpanded parameter pack in requires-clause

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 17 02:31:56 PST 2020


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

            Bug ID: 44936
           Summary: Accepts-invalid with unexpanded parameter pack in
                    requires-clause
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ensadc at mailnesia.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk,
                    saar at raz.email

https://godbolt.org/z/XFyihK

====
template<bool... Args>
struct A {
    void f() requires Args {}
};

====
`requires Args` should be an error, but seems to be wrongly accepted.

-- 
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/20200217/f2a980ed/attachment.html>


More information about the llvm-bugs mailing list