Re:F() vs. F(void) in C vs. C++
by dearrifling on Monday May 13, 2019 @01:01AM
(#19896535)
That doesn't sound right. I think the difference is that C++ doesn't treat that as an array declaration so it doesn't require a complete type.
https://old.reddit.com/r/C_Programming/comments/bn04w0/confu...
In short, for "typedef struct bar bar;", C views "bar" as an incomplete type, but C++ doesn't.