[all-commits] [llvm/llvm-project] cee679: [libc++] Always initialize __tree::{, const_}iterat...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Wed Jul 16 01:01:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cee679aa3f2b98b191873ecfeaa3d821a9156431
      https://github.com/llvm/llvm-project/commit/cee679aa3f2b98b191873ecfeaa3d821a9156431
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2025-07-16 (Wed, 16 Jul 2025)

  Changed paths:
    M libcxx/include/__tree
    A libcxx/test/extensions/libcxx/always_initialize_iterators.pass.cpp

  Log Message:
  -----------
  [libc++] Always initialize __tree::{,const_}iterator (#147167)

This was probably added to support https://wg21.link/n3644 but there's
no reason not to initialize the pointer in all standard modes. This is
technically an extension since n3644 only required value-initialized
iterators to be comparable, but supporting this as an extension should
be uncontroversial since it avoids potential reads of uninitialized
memory in C++03/C++11 without doing any harm.



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