typedef void (*X)(double); typedef void (*Y)(); typedef void (*Z)(int);
-
-
-
Yep, you can do it with function pointer types; I should have thought of that since I used it recently. Could rule it out with "in a strictly conforming program" I suppose.
End of conversation
New conversation -
-
-
Yes because compat is not transitive, but I'm not sure of an example. It might be something like: struct { int x, y; } foo( void ) { return ( struct { int x, y; } ){ 0 } ;} With X & Y in other translation units, same definition. Maybe.
-
Yep, the case I'm aware of is untagged struct/union types in different translation units (X,Z in TU1, Y in TU2) with identical members.
- End of conversation
New conversation -
-
-
VLA are apparently compatible with any array with compatible elements but fixed length arrays of different lengths are not.
-
Really? That seems unlikely..
- End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.