[all-commits] [llvm/llvm-project] 614e4a: [clang] check constant template parameters in depe...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Wed Sep 17 14:29:11 PDT 2025


  Branch: refs/heads/users/mizvekov/check-NTTP-dependent-context
  Home:   https://github.com/llvm/llvm-project
  Commit: 614e4a7b997743ad8b33a9c7c6e6347aa1b14f4a
      https://github.com/llvm/llvm-project/commit/614e4a7b997743ad8b33a9c7c6e6347aa1b14f4a
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-09-17 (Wed, 17 Sep 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/SemaTemplate/temp_arg_template.cpp

  Log Message:
  -----------
  [clang] check constant template parameters in dependent contexts

This patch makes sure constant template parameters are checked even
in dependent contexts.

This can for example diagnose narrowings earlier, but this is permitted
as these templates would have no valid instantiations.



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