GCC prints an expression - no matter how I try to prevent it. I tried
-fno-inline-O0__attribute__ ((noinline))dummy asm("")
No success! Here is the code:
The unfortunate conclusion of this (g ++ (Ubuntu / Linaro 4.5.2-8ubuntu4) 4.5.2)
func() A::A()
What happened to the statement A a = func (); ??
The reason for this experiment is that I would like to know what happens when execution arrives at this statement (because I need to control how this is done):
A a = func();
I read that the copy constructor is called when executed
A a = b;
(In this case, the copy instance is called. But not in the case of A a = func ();) Instead, the function is built-in. I NEED controls this operator, since my "structure A" in real life contains dynamically distributed data that needs to be taken care of.
Did I miss something obvious here ?!
source share