4 ms·
It's nothing to do with standard-conforming or not. A correct implementation shall never crash.
by timshen 12y ago
It's nothing to do with standard-conforming or not. A correct implementation shall never crash.
- Pacabel 12y agoThat's a pretty broad and idealistic claim to be making. "Correctness" itself isn't an absolute. While something either does or does not conform to whatever has been defined as "correct", it's perfectly fine for the defined "correct" behavior in a given situation to be a crash. In some cases a crash is the best that can be hoped for. Continuing on, even in an attempt to handle the failure more gracefully, can potentially be more harmful than just crashing.
- mikeash 12y agoI think you're confusing a crash in the generated program with a crash in the compiler itself. The latter is what's happening here.
- jwatte 12y agoThere is lots of undefined behavior that causes crashing, although usually of the target program, not the compiler. Crashing compilers is nothing new though. I can't count how many ICEs I used to run into in certain versions of certain other compilers...