https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94749
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- It looks like the bug is that when we have finished ignoring we assume that if the next char is the delimiter, then that must be why we stopped, and so we ignore that as well. But if we stopped because we reached the specified number of characters, then whether the next char is the delimiter is irrelevant. Shouldn't be hard to fix.