https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79210

--- Comment #11 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
In theory we could fix the location of the stringified token; perhaps it could
use the location of the arg.

But cpp_interpret_string_ranges calls cpp_interpret_string_1 which expects the
strings it re-lexes to have opening quotes, which isn't going to be the case
for a stringified arg; we would have to somehow flag the token as being from
stringization, and to interpret it differently so that it doesn't expect
quotes.

This seems invasive and error-prone, so I think the lowest-risk fix is likely
to be to convert the failing assertion to an error-handling conditional, rather
than to attempt to fixup the locations.

Reply via email to