[all-commits] [llvm/llvm-project] b0a790: [clang] Fix crash on invalid `std::initializer_lis...

offsetof via All-commits all-commits at lists.llvm.org
Tue Apr 1 03:44:32 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0a79065178db615b9aaff50337185ad8ee78054
      https://github.com/llvm/llvm-project/commit/b0a79065178db615b9aaff50337185ad8ee78054
  Author: offsetof <offsetof at mailo.com>
  Date:   2025-04-01 (Tue, 01 Apr 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDeclCXX.cpp
    A clang/test/SemaCXX/invalid-std-initializer-list.cpp

  Log Message:
  -----------
  [clang] Fix crash on invalid `std::initializer_list<T>` template-id (#132284)

In `Sema::BuildStdInitializerList`, check that the synthesized
template-id `std::initializer_list<T>` is valid (which might not be the
case if the template has associated constraints or subsequent parameters
with default arguments) before forming the type.

Fixes #132256



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