Open xmh0511 opened 1 year ago
That paragraph should just be a note, or perhaps just the example, or even removed altogether. Of course A<int>::fun::value
is not the same variable as A<char>::fun::value
: they are local variables in different functions.
Of course A
::fun::value is not the same variable as A ::fun::value: they are local variables in different functions.
IMO, we lack the wording to specify that such two entities cannot denote the same object.
Full name of submitter (unless configured in github; will be published with the issue): Jim X
As an augment of https://github.com/cplusplus/draft/issues/5349, the issue does not only exist in the thread but also exists within the instantiation of template entities.
[temp.fct.spec.general] p2 says
So, how about the specialization of member functions of the class template? We do not mention the case in the relevant subclause.
There lacks a wording that can distinguish the identity of the objects(entities) associated with the variable at
#1
.