https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81721
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bonzini at gnu dot org, | |geoffk at gcc dot gnu.org, | |jsm28 at gcc dot gnu.org --- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Juro Bystricky from comment #0) > > After some debugging, I found the segmentation fault was caused in > libcpp/lex.c (cpp_spell_token): > > case SPELL_IDENT: > if (forstring) > { > memcpy (buffer, NODE_NAME (token->val.node.spelling), > NODE_LEN (token->val.node.spelling)); > buffer += NODE_LEN (token->val.node.spelling); > } > svn blame for that part shows: 82199 bonzini case SPELL_IDENT: 96333 geoffk if (forstring) 96333 geoffk { 217202 jsm28 memcpy (buffer, NODE_NAME (token->val.node.spelling), 217202 jsm28 NODE_LEN (token->val.node.spelling)); 217202 jsm28 buffer += NODE_LEN (token->val.node.spelling); 96333 geoffk } cc-ing them.