diff --git a/pod/perldelta.pod b/pod/perldelta.pod index a387aabcea..a1c6a8259e 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -203,7 +203,19 @@ and L =item * -XXX L +L + +(F) An attempt was made to create an object of a class where the start +of the class definition has been seen, but the class has not been +completed. + +This can happen for a failed eval, or if you attempt to create an +object at compile time before the class is complete: + + eval "class Foo {"; Foo->new; # error + class Bar { BEGIN { Bar->new } }; # error + +Previously perl would assert or crash. [github #22159] =back