Origin Ver. and Service Release: 8.0 SR6
Operating System: Win XP
Hi,
Origin crashes while compiling inaccurate switch statement, in detail when using nested switch-statements.
I accidentally forgot the braces in the nested switch-statement. This causes the crash. See example below:
void origin_crash_switch()
{
int nCase, nCrash;
nCrash = 0;
nCase = 1;
switch(nCase)
{
case 0:
break;
case 1:
switch(nCrash)
// { <-- Origin crashes while compiling, when forgetting these braces
case 0:
break;
case 1:
break;
// }
break;
default:
break;
}
}
Can you reproduce the crash?
|-- TreeNode
...|-- a??
...|-- ha!!