cplusplus / cplusplus/draft

[expr.ref] and postfix-expression.template id-expression

Open
#4,155 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

[expr.ref]/1:
"""
A postfix expression followed by a dot . or an arrow ->, optionally followed by the keyword template, and then followed by an id-expression, is a postfix expression. The postfix expression before the dot or arrow is evaluated; the result of that evaluation, together with the id-expression, determines the result of the entire postfix expression.
"""
[expr.ref]/3: Abbreviating «postfix-expression.id-expression» as E1.E2, E1 is called the object expression...

And then the subclause describes how the result of «postfix-expression.id-expression», a.k.a. E1.E2, is determined.

But where is it described how the result of «postfix-expression. template id-expression» is determined?

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 by reading [expr.ref]/1 and [expr.ref]/3 in the draft, then trace the subclause's rules for the result of the member-access expression. Compare the wording for an ordinary id-expression with the optional template form. Done means the specification clearly states how the template case is covered or adds the necessary cross-reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, tex
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 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.