Skip to content

[gram.key] Is it in a C++98 state, or is it intentional? #6486

Open
@Eisenwave

Description

@Eisenwave

[gram.key] says that some declarations introduce context-dependent keywords.

  1. How does a typedef declaration introduce context-dependent keywords, and what are they?
  2. Also, does a using-declaration not introduce keywords, but typedef does?
  3. Last but not least, are concepts missing from this section?

Activity

JohelEGP

JohelEGP commented on Aug 21, 2023

@JohelEGP
Contributor

Also, does a using-declaration not introduce keywords, but typedef does?

It does.

2
#
A typedef-name can also be introduced by an alias-declaration.

frederick-vs-ja

frederick-vs-ja commented on Aug 21, 2023

@frederick-vs-ja
Contributor

3. Last but not least, are concepts missing from this section?

Concepts are covered by template, see [temp.pre]/1.

jwakely

jwakely commented on Aug 21, 2023

@jwakely
Member

But these all introduce names (in the form of identifiers). I think it's a valid question how they are "context-dependent keywords".

jwakely

jwakely commented on Aug 21, 2023

@jwakely
Member

If this subclause is supposed to be Informative, it should inform not confuse. What is the normative meaning of context-dependent keyword? Could we get an example of introducing one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @jwakely@JohelEGP@Eisenwave@frederick-vs-ja

      Issue actions

        [gram.key] Is it in a C++98 state, or is it intentional? · Issue #6486 · cplusplus/draft