Command line: g++ -pedantic -Wall -o test test.cpp Compiler output: none Basically, I created a class with two constructors. One of those is trying to call the other one. The call doesn't seem to have any effect at all. The problem is: g++ allows such a thing with no warnings at all. Apart from that, I believe such functionality might be useful. For example, if we've got a constructor with one parameter and quite a heavy block of code, along with another constructor that takes no arguments - which we'd like to be a wrapper for the first one, passing some kind of default value to it. Thanks for your time ;)
>The call doesn't seem to have any effect at all. Yes it does, it creates another object and calls that constructor.
Note, in the next C++ Standard, what the user wants will be possible, see, e.g.: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1986.pdf