Title
constexpr static data members across translation units
Status
nad
Section
11.4.9.3 [class.static.data]
Submitter
Richard Smith

Created on 2014-08-22.00:00:00 last changed 114 months ago

Messages

Date: 2014-11-15.00:00:00

Rationale (November, 2014):

The interpretation is correct and the implementations are incorrect.

Date: 2022-11-20.07:54:16

Given an example like

  struct X {
    static constexpr const char *p = "foo";
  };
  static const char *q = X::p;

if this appears in more than one translation unit, must the value of q be the same in each? The implication of the one-definition rule would be that it must be, but current implementations do not give that result.

History
Date User Action Args
2014-11-24 00:00:00adminsetmessages: + msg5288
2014-08-22 00:00:00admincreate