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

[temp.expl.spec] Should "declared before" be replaced by "reachable"? #4479

Closed
cpplearner opened this issue Feb 4, 2021 · 2 comments · Fixed by #4489
Closed

[temp.expl.spec] Should "declared before" be replaced by "reachable"? #4479

cpplearner opened this issue Feb 4, 2021 · 2 comments · Fixed by #4489
Assignees

Comments

@cpplearner
Copy link
Contributor

cpplearner commented Feb 4, 2021

[temp.expl.spec]/7, emphasis mine:

If a template, a member template or a member of a class template is explicitly specialized then that specialization shall be declared before the first use of that specialization that would cause an implicit instantiation to take place, in every translation unit in which such a use occurs; no diagnostic is required.

Now that we have modules, this sentence should probably say "... then a declaration of that specialization shall be reachable from ..." instead.

Note that P1787R6: Declarations and where to find them updated a similar sentence in [temp.spec.partial.general], but neglected this one.

@jensmaurer
Copy link
Member

@opensdh, any insight here?

@opensdh
Copy link
Contributor

opensdh commented Feb 8, 2021

I don't have anything to add here: it does appear to be a place I simply missed when trying to audit all uses of words like "declared before".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants