https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123400
Bug ID: 123400
Summary: tree check: expected string_cst, have error_mark in
handle_pragma_message, at c-family/c-pragma.cc in
handle_pragma_message
Product: gcc
Version: 15.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: 522024330006 at smail dot nju.edu.cn
Target Milestone: ---
Reproducer: https://godbolt.org/z/3G8hx66T3
Program:
```c
#pragma message "Debug: Vector created with values
("__FILE__":"STRINGIFY(__LINE__)")"
```
Part of the traceback:
```
internal compiler error: tree check: expected string_cst, have error_mark in
handle_pragma_message, at c-family/c-pragma.cc:1368
0x29186f8 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
???:0
0x290d4bb internal_error(char const*, ...)
???:0
0xa17731 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
???:0
0xd53dd6 c_parse_file()
???:0
0xec5469 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.
```