https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84034
Bug ID: 84034 Summary: incomplete warning message with dos line endings Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: bernd.edlinger at hotmail dot de Target Milestone: --- cat test.c extern int a,b,c,d,e,f; int test() { if ((!a && b > c) || (d && b > e) && f) return 1; return 0; } gcc -Wall -c test.c test.c: In function ‘test’: test.c:5:20: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] ~~~~~~~~~~~~~^~~ f) ~ NOTE: test.c is with DOS line endings!!!! open it in vi, say ":set ff=dos" save. The warning prints both lines correctly with ff=unix.