g++ compiles the following program: void f() {} int main(void) { foobar:f(); } This problem arose from writing a single : instead of :: for a namespace. I can't find any correct meaning for this code, and accepting means people might accidentally not get the namespace function they wanted. Am I missing something?
This is way defined valid code, even though it might look a bit weird at first glance. foobar here is a label and nothing more.
Ah, sorry, you are right. I stared at this for ages trying to figure out what it could mean. Sorry.