Issue2255

Title 2255. Instantiated static data member templates
Status open Section 14 [temp]
Submitter Mike Miller

Created on 2016-03-29.00:00:00 by admin, last changed by admin.

Messages
msg5817 (view) Date: 2016-03-29.00:00:00

The current wording does not state that a specialization of a static data member template (14 [temp] paragraph 1) is a static data member, which leaves the status of an example like the following unclear (since 5.2.5 [expr.ref] bullet 4.1 is phrased in terms of static data members):

  template <class T> struct A {
    template <class U> static const U x = 1;
    static const int y = 2;
  };

  int main() {
    A<int> a;
  int y = a.y;         // OK
  int x = a.x<int>     // ???
History
Date User Action Args
2016-03-29 00:00:00admincreate