Source:
x
1
struct C{};
2
int main()
3
{
4
int i = 0; //i is not a constant expression as expected
5
//constexpr int j = i; //this fails AS EXPECTED
6
7
C c;
8
constexpr C d = c; //WHY DOESN'T THIS FAIL??
9
}
Insight:
1
1
Console: