Why does GCC think that the definition of a constexpr static data member must be marked constexpr?
问题 [C++14: 7.1.5/1]: The constexpr specifier shall be applied only to the definition of a variable or variable template, the declaration of a function or function template, or the declaration of a static data member of a literal type (3.9). If any declaration of a function, function template, or variable template has a constexpr specifier, then all its declarations shall contain the constexpr specifier. [..] Notice that the second sentence does not mention "a static data member" the way the