by akkartik · 10y ago · 0 comments
gcc 4.8.4 on Ubuntu 14.04 Trusty still gives no warnings, but gives a different result:
$ gcc -W -Wall x.c -lm
$ a.out
(0.99)^100: 0.366032
(0.99)^100: inf
clang 3.4 on Ubuntu 14.04: $ clang -W -Wall -fsanitize=undefined x.c -lm
$ a.out
(0.99)^100: 0.366032
(0.99)^100: inf
:(