1 2 3 4
int main() { const int a = 3; int& b = a; }
1 2 3
In function 'int main()': Line 3: error: invalid initialization of reference of type 'int&' from expression of type 'const int' compilation terminated due to -Wfatal-errors.