Note that an AV does not necessarily constitute a compiler bug (eve if specific to an optimization level). Any chance I can trouble you to narrow down what actually crashes, first?
Understand. What baffles me is - the DEBUG config does NOT give any AVs. Only RELEASE config does. The last time I had this type of errors was when I worked with FORTRAN - long time ago for old time’s sake.
The crashes happened at a list of locations accessing arrays. But again, this only happens with RELEASE config. Source codes are the same (and no conditional compiling).
I created a smaller test project, removing unrelated stuff. Hope this would make it easier for you to replicate the issue: that is, DEBUG config runs fine, RELEASE config gives access violation.