I recently came across a very nasty behaviour of Intel of which I'm almost sure that it is a bug. It is kind of difficult to describe and I'm not sure what is actually causing it. However I've managed to reduce the problem from about 2000 lines of code to about 50 lines of code and I don't seem to be able to reduce it even more. As soon as I change another line the error seems to be gone.
I've attached those 50 lines to this message in the hope that someone else could test it with his configuration. I'm using Intel Composer XE2014 , Version 22.214.171.124 on Windows (x64). The error message that I get is:
1>IntelConstexpr.cpp(18,29): error : assertion failed: scan_routine: unexpected IL entry (shared/cfe/edgglue/edg_main.c, line 492)
Note that the error message of intel is very unspecific, it doesn't say anything about the problem (at least I don't understand it at all;)
I should also mention that the same code compiles with clang3.3 and gcc 4.8.1 on linux so I believe it is c++11 conforming.