You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to C++20 [\[temp.inst\]/3.1](https://timsong-cpp.github.io/cppwp/n4868/temp.inst#3.1) the definition of static data member `i` should not be instantiated, and therefore the program must compile:
This example contains only a declaration, not a definition, of the static data member. The initializer is part of that declaration, so gets instantiated with the class.
According to C++20 [temp.inst]/3.1 the definition of static data member
i
should not be instantiated, and therefore the program must compile:Clang 17.0.1 instantiates it, and compilation fails. Demo.
The text was updated successfully, but these errors were encountered: