llvm / llvm/llvm-project

LWG4304: `std::optional<NonReturnable&>` is ill-formed due to `value_or`

Open
#171,343 1 comment 0 reactions 0 assignees View on GitHub
c++26 libc++ lwg-issue
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

**Link:** https://wg21.link/LWG4304

Contributor guide

Open the contributing guide

Research direction

Start with LWG4304 at the linked wg21.info page, then locate the std::optional and value_or implementation in llvm-project. Determine the required behavior for NonReturnable and verify the result with the relevant optional tests; done means the type is well-formed and the behavior matches the LWG resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.