Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc:2:35: error: redefinition of 'v'
template <typename T> constexpr T v(888);
^
prog.cc:1:35: note: previous definition is here
template <typename T> constexpr T v;
^
prog.cc:1:35: error: constexpr variable declaration must be a definition
template <typename T> constexpr T v;
^
prog.cc:10:15: note: in instantiation of variable template specialization 'v<S>' requested here
static_assert(v<S>.value == 888);
^
prog.cc:10:15: error: static_assert expression is not an integral constant expression
static_assert(v<S>.value == 888);
^~~~~~~~~~~~~~~~~
3 errors generated.
Exit Code:
1