Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: b2b5c0b5fc4c0876397298bfa6459ec385586e63
https://github.com/Perl/perl5/commit/b2b5c0b5fc4c0876397298bfa6459ec385586e63
Author: Richard Leach <[email protected]>
Date: 2026-01-29 (Thu, 29 Jan 2026)
Changed paths:
M t/lib/croak/toke
M toke.c
Log Message:
-----------
S_scan_const: abort compilation after \N{} errors
Upon encountering errors in parsing `\N{}` sequences, the parser used to
try to continue parsing for a bit before exiting. However, these errors
are - under certain circumstances - associated with problems with the
savestack being incorrectly adjusted.
GH #16930 is an example of this where:
* `PL_comppad_name` points to one struct during allocation of pad slots.
* Savestack activity causes `PL_comppad_name` to point somewhere else.
* The peephole optimiser is called, but needs `PL_comppad_name` to point
to the first struct to match up with the pad allocations.
With this commit, errors in parsing `\N{}` sequences are immediately fatal.
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications