[all-commits] [llvm/llvm-project] a671e7: [clang] Implement CWG2413 (implicit `typename` in ...

Victor Chernyakin via All-commits all-commits at lists.llvm.org
Fri May 1 18:59:49 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a671e795908c306d4dc234d4ab017e141bf3d06e
      https://github.com/llvm/llvm-project/commit/a671e795908c306d4dc234d4ab017e141bf3d06e
  Author: Victor Chernyakin <chernyakin.victor.j at outlook.com>
  Date:   2026-05-01 (Fri, 01 May 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/RedundantTypenameCheck.cpp
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Parse/Parser.h
    M clang/lib/Parse/ParseDecl.cpp
    M clang/test/CXX/drs/cwg24xx.cpp
    M clang/test/CXX/temp/temp.res/p4.cpp
    M clang/www/cxx_dr_status.html

  Log Message:
  -----------
  [clang] Implement CWG2413 (implicit `typename` in conversion operators) (#195207)

Link: [CWG2413](https://wg21.link/cwg2413). This DR was resolved by
[P1787R6](https://wg21.link/P1787R6) by adding the following wording to
[[temp.res.general]/4](https://eel.is/c++draft/temp.res.general#4):

> A [type-only
context](https://eel.is/c++draft/temp.res.general#def:context,type-only)
is defined as follows: A qualified or unqualified name is said to be in
a type-only context if it is the terminal name of
> - ...
> - a [type-specifier](https://eel.is/c++draft/dcl.type.general#nt:type-specifier) of a
>   - ...
> - [conversion-type-id](https://eel.is/c++draft/class.conv.fct#nt:conversion-type-id),

Towards #54150.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list