Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dcl.init.ref]/5 misuses "underlying type" for references #2180

Closed
languagelawyer opened this issue Jun 14, 2018 · 2 comments
Closed

[dcl.init.ref]/5 misuses "underlying type" for references #2180

languagelawyer opened this issue Jun 14, 2018 · 2 comments
Assignees
Labels
tiny An issue with a small change; with "cwg" label: can be applied editorially after CWG consent.

Comments

@languagelawyer
Copy link
Contributor

languagelawyer commented Jun 14, 2018

There was issue #391 about 'underlying type' for a reference used in [over.match], fixed by #1013. But this misusage of 'underlying type' is still exists in "this document", in the definition of bind directly :

In all cases except the last (i.e., implicitly converting the initializer expression to the underlying type of the reference), the reference is said to bind directly to the initializer expression.


I've searched with the https://github.com/cplusplus/draft/search?q=%22underlying+type%22 request. This looks like the last place where 'underlying type' is mentioned in a context not related to enumerations or wchar_t/char{16,32}_t.

@jensmaurer
Copy link
Member

There is also #2057.

@jensmaurer jensmaurer self-assigned this Jun 14, 2018
@jensmaurer jensmaurer added the tiny An issue with a small change; with "cwg" label: can be applied editorially after CWG consent. label Jun 14, 2018
@languagelawyer
Copy link
Contributor Author

There is also #2057.

Well, you are right. I meant that this is the last place which was not reported yet. I know about #2057, the title of this issue was inspired by it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tiny An issue with a small change; with "cwg" label: can be applied editorially after CWG consent.
Projects
None yet
Development

No branches or pull requests

2 participants