J
Johannes Schaub (litb)
This seems to be fine according to rules, right? (assuming that we won't
create a trap representation)
union A {
int i;
float d;
};
union A f() {
union A a = { 10 };
return a;
}
int main() {
// note: we don't access an object and don't use lvalues!
float ff = f().d;
}
I wonder whether this is fine.
create a trap representation)
union A {
int i;
float d;
};
union A f() {
union A a = { 10 };
return a;
}
int main() {
// note: we don't access an object and don't use lvalues!
float ff = f().d;
}
I wonder whether this is fine.