code for this was in my private tree at one time, and I must have forgotten to g/c the constant from trap.h). Reported by enami tsugutomo <enami@but-b.or.jp>, PR #3845.