Title
constexpr variables should have internal linkage like const
Status
c++11
Section
6.6 [basic.link]
Submitter
US

Created on 2010-08-02.00:00:00 last changed 123 months ago

Messages

Date: 2010-11-15.00:00:00

[Voted into the WP at the November, 2010 meeting.]

Date: 2010-08-15.00:00:00

Proposed resolution (August, 2010):

Change 6.6 [basic.link] bullet 3.2 as follows:

  • a variable that is explicitly declared const or constexpr and neither explicitly declared extern nor previously declared to have external linkage; or

Date: 2010-08-02.00:00:00
N3092 comment US 24

One of the critieria for giving a name internal linkage is “a variable that is explicitly declared const and neither explicitly declared extern nor previously declared to have external linkage.” This should presumably apply to variables declared constexpr as well.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetstatus: dr -> fdis
2010-11-29 00:00:00adminsetmessages: + msg3145
2010-11-29 00:00:00adminsetstatus: ready -> dr
2010-08-23 00:00:00adminsetmessages: + msg2758
2010-08-02 00:00:00admincreate