Title
Linkage of variable template specializations
Status
dup
Section
9.11 [dcl.link]
Submitter
Richard Smith

Created on 2013-07-08.00:00:00 last changed 38 months ago

Messages

Date: 2021-02-15.00:00:00

Rationale (February, 2021):

This issue is a duplicate of, and resolved by the resolution of, issue 2387.

Date: 2014-02-15.00:00:00

Notes from the February, 2014 meeting:

CWG noted that linkage is by name, and a specialization of a variable template does not have a name separate from that of the variable template, thus the specialization will have the linkage of the template.

Date: 2013-07-08.00:00:00

Given a namespace-scope declaration like

  template<typename T> T var = T();

should T<const int> have internal linkage by virtue of its const-qualified type? Or should it inherit the linkage of the template?

History
Date User Action Args
2021-02-24 00:00:00adminsetmessages: + msg6521
2021-02-24 00:00:00adminsetstatus: drafting -> dup
2014-03-03 00:00:00adminsetmessages: + msg4881
2014-03-03 00:00:00adminsetstatus: open -> drafting
2013-07-08 00:00:00admincreate