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

[basic.lookup.classref]p1 CWG 682: Should allow alias-templates followed by '<' #2593

Closed
RealLitb opened this issue Dec 11, 2018 · 4 comments · Fixed by #3748
Closed

[basic.lookup.classref]p1 CWG 682: Should allow alias-templates followed by '<' #2593

RealLitb opened this issue Dec 11, 2018 · 4 comments · Fixed by #3748
Labels
cwg Issue must be reviewed by CWG. not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking.

Comments

@RealLitb
Copy link

RealLitb commented Dec 11, 2018

The text currently renders this ill-formed, because "c.U" in the context of the postfix expression doesn't find 'U' as a class-template, but alias template:

   struct C { typedef C type; int dummy; };

   template<typename>
   using U = C;

   int main() {
       C c;
       c.U<void>::dummy = 0;
   }

GCC and Clang implement the obvious, so I suspect this can be fixed editorially (stealing the wording used for "only-templates-that-yield-types::something" lookup).

@jensmaurer
Copy link
Member

@RealLitb, Could you please edit your submission so that the angular brackets are visible?

@jensmaurer jensmaurer added changes requested Changes to the wording or approach have been requested and not yet applied. and removed changes requested Changes to the wording or approach have been requested and not yet applied. labels Dec 14, 2018
@jensmaurer
Copy link
Member

Asked CWG whether to proceed editorially here; this feels like a normative change: http://lists.isocpp.org/core/2018/12/5331.php

@jensmaurer jensmaurer added the cwg Issue must be reviewed by CWG. label Dec 19, 2018
@jensmaurer
Copy link
Member

A more involved example with a dependent object expression shows implementation variance. This is not editorial.

@jensmaurer jensmaurer added the not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking. label Dec 19, 2018
@jensmaurer jensmaurer changed the title [basic.lookup.classref]p1 Should allow alias-templates followed by '<' [basic.lookup.classref]p1 CWG 682: Should allow alias-templates followed by '<' Jun 14, 2019
@JohelEGP
Copy link
Contributor

[Accepted as a DR at the July, 2019 meeting.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cwg Issue must be reviewed by CWG. not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants