The attached very simple program crashed when compiled with icc (icc version 15.0.2 (gcc version 4.9.0 compatibility)), under Ubuntu 14.10.
Step to reproduce
- Download the attached source file bug.c
- Compile it: icc bug.c -o bug
- Execute it: bug
- Result:
0 1 -> 1
Floating point exception (core dumped)
When compiled with other compilers as gcc or clang, the program behaves as expected, without crashing. The source code does not contain any floating point variable.
--
Richard Delorme