[all-commits] [llvm/llvm-project] 9eb0f8: [clang] Implement CWG1878 "`operator auto` templat...

Vlad Serebrennikov via All-commits all-commits at lists.llvm.org
Sat Jan 20 00:23:20 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9eb0f86c279f40a792ec27bf0e9b491b8c90a640
      https://github.com/llvm/llvm-project/commit/9eb0f86c279f40a792ec27bf0e9b491b8c90a640
  Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
  Date:   2024-01-20 (Sat, 20 Jan 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/CXX/drs/dr18xx.cpp
    M clang/test/SemaCXX/deduced-return-type-cxx14.cpp
    M clang/www/cxx_dr_status.html

  Log Message:
  -----------
  [clang] Implement CWG1878 "`operator auto` template" (#78103)

C++14 introduced deduced return type for regular functions, but shortly after [CWG1878](https://wg21.link/cwg1878) was filed and resolved to disallow deduced return types in conversion function templates. So this patch diagnoses such usage of deduced return type in C++14 mode onwards.

Fixes #51776




More information about the All-commits mailing list