Lucas Goss wrote: > So the compiler does error with the first two attempts, but the third > compiles and runs fine. Yes, it is C++ and is perfectly legal C++. A more interesting question is should it be legal? I posed the question in comp.lang.c++.moderated, and got a couple of interesting answers.