Title
Class member access to static data member template
Status
nad
Section
7.6.1.5 [expr.ref]
Submitter
Faisal Vali

Created on 2016-02-18.00:00:00 last changed 83 months ago

Messages

Date: 2016-11-15.00:00:00

Rationale (November, 2016):

The specification is as intended.

Date: 2022-11-20.07:54:16

Consider:

  struct A {
    template<class T> static int X;
  };
  template<class T> int A::X = T{};

  A{}.X<int>; // error
  A::X<int>;  // OK

Implementations seem to reject the class member access, despite 7.6.1.5 [expr.ref] bullet 6.1 stating the contrary.

History
Date User Action Args
2018-02-27 00:00:00adminsetmessages: + msg6004
2018-02-27 00:00:00adminsetstatus: open -> nad
2016-02-18 00:00:00admincreate