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
Too late warning not given for CHECK block in INIT block #6990
Comments
From @ysthCreated by @ysthThis code should give a "Too late to run CHECK block" warning but perl -we'INIT { eval "CHECK {print qq:in check in init\n:}" }' Perl Info
|
From @wolfsageThanks for the report. This is because when nothing is actually happening in the main scope of (Inside of Perl_newprog()): if (o->op_type == OP_STUB) { return; < -- Returns here (The warning check:) if (PL_main_start) This warns correctly for example: perl -we'INIT { eval "CHECK {print qq:in check in init\n:}" } print "hi";' Since the CHECK blocks don't actually get run, the warning should still -- Matthew Horsfall (alh) |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Sat Dec 17 20:36:28 2011, alh wrote:
It may be very unlikely, but I would not consider it illogical to want -- Father Chrysostomos |
From @cpansproutOn Sat Dec 17 23:17:09 2011, sprout wrote:
On the other hand, this bug report was about the main program, not an -- Father Chrysostomos |
From @ysthOn Tue, Jan 10, 2012 at 1:58 PM, Father Chrysostomos wrote:
This bug is only about a very unlikely to occur case, so is presumably |
Migrated from rt.perl.org#24684 (status was 'open')
Searchable as RT24684$
The text was updated successfully, but these errors were encountered: