https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119562
Bug ID: 119562 Summary: ICE on trunk when trying to token-paste a raw string Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rl.alt.accnt at gmail dot com Target Milestone: --- This code currently crashes GCC trunk (https://godbolt.org/z/eT3Mn9PxM): #define X R##"x()" X Crash: <source>:2:1: error: unterminated raw string 2 | X | ^ <source>:2:1: internal compiler error: Segmentation fault 0x29226a5 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x2939676 internal_error(char const*, ...) ???:0 0xe56bdc preprocess_file(cpp_reader*) ???:0 0xe54a05 c_common_init() ???:0 0xc0e35e cxx_init() ???:0