https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89410
--- Comment #21 from Jonny Grant <jg at jguk dot org> --- Hi! In comment 9 I raised if #line 0 could be prevented please #line next_line_num So a line can only be >=1 as I understand it. Editors show files from line 1. There's no line 0 Godbolt can't show the error.. as it prevents showing line 0 that doesn't exist (files count from 1), and gcc shows the wrong code line highlighted. #line 0 #error 3 #error hello #1 with x86-64 gcc (trunk) <source>: error: #error 3 <source>:1:2: error: #error hello 1 | #line 0 | ^~~~~ Compiler returned: 1