# New Ticket Created by Carlin Bingham # Please include the string: [perl #68748] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=68748 >
Happens with subs, methods and submethods. It depends on the order the multi is declared (multi declared first or multi declared second is the difference between no output and the segfault). Just from my testing: > sub foo {}; multi sub foo {}; Redefinition of routine foo Segmentation fault > method foo {}; multi method foo {}; Segmentation fault > submethod foo {}; multi submethod foo {}; Segmentation fault > multi sub foo {}; sub foo {}; # doesn't die, no output > multi sub foo {}; sub foo {}; foo Segmentation fault > multi sub foo {}; sub foo {}; foo; # with a semi-colon, doesn't die > multi method foo {}; method foo {}; Segmentation fault > multi submethod foo {}; submethod foo {}; # doesn't die, no output > multi submethod foo {}; submethod foo {}; foo Segmentation fault > multi submethod foo {}; submethod foo {}; foo; too few arguments passed (0) - 2 params expected in submethod foo (<unknown>:1) called from Main (<unknown>:1) > sub infix:<~> {}; multi sub infix:<~> {}; Redefinition of routine infix:~ Segmentation fault > multi sub infix:<~> {}; sub infix:<~> {}; # doesn't die, no output > multi sub infix:<~> {}; sub infix:<~> {}; say "a"~"b"; Segmentation fault Backtrace is at: http://gist.github.com/173374 -- Carlin