To my surprise this compiles fine:
int main()
{
constexpr int x = 1 + + + + + + 2;
static_assert(x==3);
}
I know C++ has weird complex grammar(and it tries to allow all C code to be valid), so I presume that is the case why this is allowed, but is there some good positive reason why we would not want this code banned?
edit: even more bizzare cases work:
int main()
{
constexpr int x = 1 + - - + + + 2;
static_assert(x==3);
}