-
Notifications
You must be signed in to change notification settings - Fork 577
Assertion failure in toke.c #300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From [email protected]perl -e "@a'" Same effect using [$%*] instead of @. Same under 5.00404, 5.00558 (BTW Isn't it about time to deprecate $a'a ?) Perl Info
|
From @gsarOn Sun, 01 Aug 1999 00:45:16 BST, Ian Phillipps wrote:
Do not underestimate the vast stillness of Perl4 that lies Sarathy Inline Patch-----------------------------------8<-----------------------------------
Change 4133 by gsar@auger on 1999/09/13 03:25:43
avoid assertion failure on C<@a'>
Affected files ...
... //depot/perl/toke.c#148 edit
Differences ...
==== //depot/perl/toke.c#148 (text) ====
Index: perl/toke.c
--- perl/toke.c.~1~ Sun Sep 12 20:25:47 1999
+++ perl/toke.c Sun Sep 12 20:25:47 1999
@@ -213,8 +213,12 @@
char *oldbp = PL_bufptr;
bool is_first = (PL_oldbufptr == PL_linestart);
- assert(s >= oldbp);
- PL_bufptr = s;
+ if (!s)
+ s = oldbp;
+ else {
+ assert(s >= oldbp);
+ PL_bufptr = s;
+ }
yywarn(Perl_form(aTHX_ "%s found where operator expected", what));
if (is_first)
Perl_warn(aTHX_ "\t(Missing semicolon on previous line?)\n");
End of Patch. |
Migrated from rt.perl.org#1123 (status was 'resolved')
Searchable as RT1123$
The text was updated successfully, but these errors were encountered: