------- Comment #6 from vincent at vinc17 dot org 2008-06-10 12:37 ------- OK, but shouldn't g++ generate a SIGABRT instead of a illegal instruction? I've never had thought that a compiler should generate an illegal instruction on purpose, so making me think that the problem comes from the compiler.
Also, is it a problem specific to g++ and is it invalid C++? "gcc -std=c99 -Wc++-compat -pedantic -Wextra" doesn't emit any warning about this code (but it was said that -Wc++-compat was incomplete). If this is specific to g++, then the SIGILL is not acceptable. Otherwise -Wc++-compat needs to be improved. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36484