[llvm-bugs] [Bug 49695] New: Clang accepts concept definition with syntax error

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 23 07:04:46 PDT 2021


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

            Bug ID: 49695
           Summary: Clang accepts concept definition with syntax error
           Product: clang
           Version: trunk
          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

template <typename T>
concept C = requires {
  requires { true; };
};

https://godbolt.org/z/d5x9s78hK

This code should not be compiled since '{ true; };' is not a
constraint-expression.

-- 
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/20210323/e5bb7489/attachment-0001.html>


More information about the llvm-bugs mailing list