[all-commits] [llvm/llvm-project] 5c8ba2: [C11] Implement WG14 N1285 (temporary lifetimes) (...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu Apr 10 05:12:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c8ba28c751bf0e7cb5c3ac9d223acba4cefc739
      https://github.com/llvm/llvm-project/commit/5c8ba28c751bf0e7cb5c3ac9d223acba4cefc739
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-04-10 (Thu, 10 Apr 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/CodeGen/CGDecl.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/C/C11/n1285.c
    A clang/test/C/C11/n1285_1.c
    M clang/test/CodeGen/xcore-abi.c
    M clang/test/CodeGenObjC/property-array-type.m
    M clang/www/c_status.html

  Log Message:
  -----------
  [C11] Implement WG14 N1285 (temporary lifetimes) (#133472)

This feature largely models the same behavior as in C++11. It is
technically a breaking change between C99 and C11, so the paper is not
being backported to older language modes.

One difference between C++ and C is that things which are rvalues in C
are often lvalues in C++ (such as the result of a ternary operator or a
comma operator).

Fixes #96486



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