[all-commits] [llvm/llvm-project] 7cf286: [C++] Fix a crash with __thread and dependent type...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Mon May 19 08:29:09 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cf2860cbdc158a04d4a982fa7043cd9e6401e77
      https://github.com/llvm/llvm-project/commit/7cf2860cbdc158a04d4a982fa7043cd9e6401e77
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-05-19 (Mon, 19 May 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/SemaCXX/thread-specifier.cpp

  Log Message:
  -----------
  [C++] Fix a crash with __thread and dependent types (#140542)

We were checking whether the initializer is a valid constant expression
even if the variable was dependent. Now we delay that checking until
after the template has been instantiated.

Fixes #140509



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