the following code causes a segmentation violation in the compiler with Parallel Studio XE 2016 (2016.0.110) integrated into Visual Studio 2015.
I tested out with VS 2013 and was successful and will let you know what I find with 2015 VS.
Thanks for the test case. I reproduced this with Parallel Studio XE 2016 and Visual Studio 2015, and I escalated the issue to the development team (DPD200376379).
Thanks Amanda, yes I could reproduce this as well.
This issue is fixed in Parallel Studio 2016 update 1 (compiler version 16.0 update 1).
For more complete information about compiler optimizations, see our Optimization Notice.