microsoft / microsoft/STL

Implement P2590R2 Explicit Lifetime Management for Clang and EDG

Open
#6,169 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

compiler enhancement
Dominant language
C++
Stars
11.1k
Forks
1.7k
Avg merge
4d 15h
Merged PRs (30d)
22

Description

Followup to #2942.

I'm implementing WG21-P2590R2 Explicit Lifetime Management for MSVC (as wrappers around the intrinsics implemented by @JonCavesMSFT in internal MSVC-PR-703299 on 2026-01-31). When the necessary builtins become available for Clang and EDG, we should finish the implementation.

  • llvm/llvm-project#105234
  • VSO-2846756 EDG needs to implement __builtin_start_lifetime_as and __builtin_start_lifetime_as_array intrinsics

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with issue #2942 and track the linked llvm/llvm-project#105234 and the EDG implementation request for the listed lifetime intrinsics. The work is complete when Clang and EDG provide the required builtins and the STL implementation of P2590R2 is finished for those compilers.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.