But if I define MyType as an anonymous struct (not an array), it'll be fine. And if I use static, no error either. So can you explain that why C++ treats this as error. In other words, why can't a non-local function use a pointer of anonymous type as parameter?
Thanks.