Open xmh0511 opened 1 year ago
Given [module.context] p3 says:
the instantiation context is the union of the instantiation context of the enclosing specialization
I think it's sufficiently clear that [module.context] p3 needs to be recursively interpreted, so there can already be more than one "the template" in the recursive interpretation.
there can already be more than one "the template" in the recursive interpretation.
This should be the intent, however, in that whole sentence, "the template" may not convey that meaning clearly. In other words, you cannot determine whether "the template" refer to the priorly appeared "a template" or refer to more than one "template" that would be used in this context. Furthermore, "the template" appears after "a template" that is first appeared, if there is no more interpretation, "the template" commonly refers to "a template".
Full name of submitter (unless configured in github; will be published with the issue): Jim X
The original issue is https://github.com/cplusplus/draft/issues/4949
[module.context] p3 says:
What does "the template" refer to? According to the grammar, it may refer to the prior appearance of "a template", however, as specified by the below example
"the template" should also intend to mean the enclosing template. The definite article
the
may mislead here. Another issue, the third interpretation is the below exampleWe say
The point of instantiation of the enclosing template
f
andg
are defined by [temp.point] p1, anyhow, they are not the call sites.Suggested Resolution
Change [module.context] p3 to
Change the third interpretation in the example to