Let's take this example:
struct Foo {
int &i;
Foo(int &i) : i(i) {}
private:
int a, b, c, d;
};
The internal a..d
attributes are not used. Is the compiler allowed to remove them from the objects?
Also is the reference also removed during link?
I am wondering if the compiler is allowed to remove a, b, c, d
from the object since it is not used. Also if the intermediate instance can be removed from the