What would 'std:;' do in c++?
I was recently modifying some code, and found a pre-existing bug on one line within a function: std:;string x = y; This code still compiles and has been working as expected. The string definition works because this file is using namespace std; , so the std:: was unnecessary in the first place. The question is, why is std:; compiling and what, if anything, is it doing? std: its a label, usable as a target for goto . As pointed by @Adam Rosenfield in a comment, it is a legal label name. C++03 §6.1/1: Labels have their own name space and do not interfere with other identifiers. It's a label,