This program compiles without errors, for example with clang -Wall -std=c11 a.c and gcc -Wall -std=c11 a.c. Is this a bug in clang and gcc? Because ari
clang -Wall -std=c11 a.c
gcc -Wall -std=c11 a.c
Function pointer arithmetic is a gcc extension also implemented by clang.
To invoke standards compliance you need
gcc -std=c11 -pedantic ... clang -std=c11 -pedantic ...