https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123357
Bug ID: 123357
Summary: ICE: in linemap_add, at libcpp/line-map.cc
Product: gcc
Version: 15.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: 522024330006 at smail dot nju.edu.cn
Target Milestone: ---
Reproducer: https://godbolt.org/z/oncc6xq5j
Program:
```c
# 1 ""
# 2 "padding.h" 1
# 3 "" 2
```
Traceback:
```
padding.h:2: internal compiler error: in linemap_add, at libcpp/line-map.cc:654
0x25b9a48 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
???:0
0x25ae80b internal_error(char const*, ...)
???:0
0xa1a82e fancy_abort(char const*, int, char const*)
???:0
0x26905cb linemap_add(line_maps*, lc_reason, unsigned int, char const*,
unsigned int)
???:0
0x2678160 _cpp_do_file_change
???:0
0x2677228 _cpp_handle_directive
???:0
0x268e350 _cpp_lex_token
???:0
0xb5934a c_lex_with_flags(tree_node**, unsigned long*, unsigned char*, int)
???:0
0xaeae4d c_parse_file()
???:0
0xb6ec59 c_common_parse_file()
???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
```