[expr.comma, class.base.init] What is "temporary expression"?
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 221
- Forks
- 813
- Avg merge
- 16h 4m
- Merged PRs (30d)
- 36
Description
The phrase "temporary expression" does not seem to be a defined term. It is used in the following contexts:
If the right operand is a temporary expression ([class.temporary]), the result is a temporary expression.
A temporary expression bound to a reference member in a mem-initializer is ill-formed.
A temporary expression bound to a reference member from a default member initializer is ill-formed.
The sentence in [expr.comma]/1 was added by CWG 462 and has editorial adjustments applied later. CWG 462 should probably be superseded by CWG 1299 and thus that sentence could be removed.
The ones in [class.base.init] could probably say "temporary object" rather than "temporary expression".
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the cited [expr.comma] and [class.base.init] paragraphs, then read CWG 462 and CWG 1299 to understand the terminology history. Resolve whether “temporary expression” is defined or should be replaced in each cited passage; done means the affected wording consistently uses an established term.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100