1 Jul
2014
1 Jul
'14
9:39 a.m.
Aniket Pugaonkar wrote:
test.cpp(16): error: expression must have a constant value if ((info1.start < info2.end) && (info2.end > info1.end) && (info1.end < info2.start) )
...
Now, if I compile it without " -mmic " flag, then there is no compiler errors.
This looks like a compiler bug, in that "info1.start<...>" is interpreted as a member template, with an argument of "info2.end) && (info2.end". You may try rewriting the condition to use > instead of < and see if that helps.