int fnA() { return (int)0.5); } int fnB() { return (5+5)); } array<int>> arr;
The above code compiles fine, even though it has missmatched brackets everywhere. Seems to be only not handled if used within a return statement, or template instantiation (third line). If used anywhere else (as far as i'm aware of), e.g.,
int a = (5+5));
an error is generated with "Invalid statement ')'".