https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99325
Bug ID: 99325
Summary: [11 Regression] ICE in maybe_print_line_1, at
c-family/c-ppoutput.c:454
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Changed between 20201115 and 20201122 :
$ cat z1.c
#line 9223372036854775807
#pragma message "abc"
$ gcc-11-20210228 -c z1.c -no-integrated-cpp
z1.c:1:7: warning: line number out of range
1 | #line 9223372036854775807
| ^~~~~~~~~~~~~~~~~~~
z1.c:-1: internal compiler error: Segmentation fault
0xb5eeff crash_signal
../../gcc/toplev.c:327
0x6edd15 maybe_print_line_1
../../gcc/c-family/c-ppoutput.c:454
0x6edd15 maybe_print_line
../../gcc/c-family/c-ppoutput.c:479
0x6ee7fe token_streamer::stream(cpp_reader*, cpp_token const*, unsigned int)
../../gcc/c-family/c-ppoutput.c:270
0x6eea03 scan_translation_unit
../../gcc/c-family/c-ppoutput.c:322
0x6eea03 preprocess_file(cpp_reader*)
../../gcc/c-family/c-ppoutput.c:102
0x6ecf90 c_common_init()
../../gcc/c-family/c-opts.c:1195
0x62f8bd lang_dependent_init
../../gcc/toplev.c:1889
0x62f8bd do_compile
../../gcc/toplev.c:2186