I tried this code on ideone and on Visual Studio 2013:
int main()
{
int x = 5;
if(4 < x < 6)
{
return 1;
}
return 0;
}
It produces a runtime error on ideone but works perfectly fine on VS.
What does the standard say about this nonconsistent behaviour. I know there are compilation warnings but I'm wondering why this isn't natively/officially supported?