No call to constructor
Because the constructor never gets called actually.
Class object();
is interpreted as the declaration of a function object
taking no argument and returning an object of Class
[by value]
Try Class object;
EDIT:
As Mike noticed this is not exactly the same code as what you are feeding to the compiler. Is the constructor/destructor public
or is Class
a struct?
However google for C++ most vexing parse.