Well : here are two new RPT files.
The first one is compiled with giving -g as cb_release_type value. The second one by simply giving a space in that value (so no optimisations). My previous rpt was obtained with -O2.
Looking in those new versions, I see that the error does not seem to come from the same part of code, but from a sort.
More, in the -g version, I see a pointer to a wxIntPtr, but I'm not able to determine if it has the right length (a right click on it in newfromtemplatedlg.cpp does not give me it's declaration, though I suppose it's in wx/types.h). But those files are not recent, so I don't see why it's a problem now, and not before may 9th !