Link Copied
Thanks for reporting it and also thanks for a small testcase.
I can duplicate this issue on Windows using 12.0 update 4 and update 6 (12.1).
If I replace "MAX_INT" with "3" in the template class, it compiles ok.
Let me file a ticket to the compiler.
Thanks,
Jennifer
This issue has been fixed in the Intel C++ ComposerXE update 9. It is available for download at the Intel Registration Center.
Jennifer
For more complete information about compiler optimizations, see our Optimization Notice.