GCC provides extensions not found in ISO standard C or C++.
I don't understand why this works: /* gcc range extension */ __extension__ static int fn(int n) { switch (n) { case 0: return 0; case 1 ... 1000: …