Re:A Guide to Undefined Behavior in C and C++ (2010)
by tom_ on Monday November 05, 2018 @12:56PM
(#18384354)
Thanks for the clarification. An outbreak of good sense? I hope it's contagious. It is still undefined behaviour in C11.
Not sure I agree with you about UB - missing line-endings is a parse-time issue, so the intent appears to be that the compiler (or interpreter) is free to do what it likes even at this stage, before your program is even ready to run.
Not sure I agree with you about UB - missing line-endings is a parse-time issue, so the intent appears to be that the compiler (or interpreter) is free to do what it likes even at this stage, before your program is even ready to run.