Re: [PATCH] c-ppoutput: Fix preprocessing ICE on very large line number [PR99325]

2021-03-04 Thread Nathan Sidwell
On 3/4/21 4:03 AM, Jakub Jelinek wrote: Hi! In libcpp, lines are represented as linenum_type, which is unsigned int. The following testcases ICE because maybe_print_line_1 is sometimes called with UNKNOWN_LOCATION (e.g. at pragma eof) and while most of the time the && src_line >= print.s

[PATCH] c-ppoutput: Fix preprocessing ICE on very large line number [PR99325]

2021-03-04 Thread Jakub Jelinek via Gcc-patches
Hi! In libcpp, lines are represented as linenum_type, which is unsigned int. The following testcases ICE because maybe_print_line_1 is sometimes called with UNKNOWN_LOCATION (e.g. at pragma eof) and while most of the time the && src_line >= print.src_line && src_line < print.src_line