cplusplus / cplusplus/draft

[over.ics.list] p9 The cross-referenced subclause [over.ics.ref] does not touch an non-expression initializer

Open
#5,463 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
221
Forks
813
Avg merge
16h 4m
Merged PRs (30d)
36

Description

[over.ics.list] p9 says

Otherwise, if the parameter is a reference, see [over.ics.ref].

However, [over.ics.ref] does not cover the case where the initializer is not an expression. Even the subclause [dcl.ref] is based on the initializer expression.

So, the cross-referenced subclause says nothing about the case where the initializer is an initializer list. The change to [over.ics.list] p9 might be

Otherwise, if the parameter is a reference, the conversion sequence is the one required to convert the initializer list to the referenced type.

This means the other rules other than [over.ics.list] p9 can define the conversion sequence for this case, which conforms to what the note after [over.ics.list] wants to say

The rules in this subclause will apply for initializing the underlying temporary for the reference.

Contributor guide

No contributing guide indexed for this repository

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 [over.ics.list] paragraph 9 and compare its reference to [over.ics.ref] and [dcl.ref]. Check how the wording handles a reference parameter whose initializer is an initializer list rather than an expression. Done means the cross-reference or replacement wording specifies the required conversion sequence without leaving that case uncovered.

Written by the indexing model from the issue text.

Assessment

Tech stack
tex
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.