I am developing cross-platform project, and I found something strange. in visual studio, the following code will fail. But g++/clang++ in Linux environment can compile without error. In addition, I search for keyword on VS, but found nothing. Anyone the reason?
int main(){
({;});
return 0;
}
error C2059: syntax error: '{'
error C2143: syntax error: missing ';' before '{'
error C2059: syntax error: ')'
Visual Studio version I have : Microsoft Visual Studio Professional 2019, Version 16.5.1