[all-commits] [llvm/llvm-project] 6da3d6: [concepts] Implement dcl.decl.general p4: No const...

Erich Keane via All-commits all-commits at lists.llvm.org
Tue May 17 06:22:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6da3d66f03f9162ef341cc67218be40e22fe9808
      https://github.com/llvm/llvm-project/commit/6da3d66f03f9162ef341cc67218be40e22fe9808
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2022-05-17 (Tue, 17 May 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/CXX/dcl.decl/dcl.decl.general/p4-20.cpp
    M clang/test/CXX/dcl/dcl.decl/p3.cpp
    M clang/test/CXX/expr/expr.prim/expr.prim.id/p4.cpp
    M clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp
    M clang/test/CXX/over/over.match/over.match.viable/p3.cpp
    M clang/test/CXX/over/over.over/p4-2a.cpp
    M clang/test/Parser/cxx-concepts-requires-clause.cpp
    M clang/test/Parser/cxx2a-concepts-requires-expr.cpp
    M clang/test/SemaCXX/cxx20-check-fptr-constraints.cpp

  Log Message:
  -----------
  [concepts] Implement dcl.decl.general p4: No constraints on non-template funcs

The standard says:
The optional requires-clause ([temp.pre]) in an init-declarator or
member-declarator shall be present only if the declarator declares a
templated function ([dcl.fct]).

This implements that limitation, and updates the tests to the best of my
ability to capture the intent of the original checks.

Differential Revision: https://reviews.llvm.org/D125711




More information about the All-commits mailing list