I came across a tiny bug in the computation of overnight index coupons. In the file overnightindexcoupon.cpp the funtion swapletRate has a while slope
of type while( fixingDates[i]<today && i<n). When you try to compute the coupon on the payment date than the condition i<n is not satified but the access in fixingDates[i] is executed before. The program crahes.
Log in to post a comment.