On Thursday, 31 October 2019 at 12:37:55 UTC, user1234 wrote:
On Thursday, 31 October 2019 at 12:29:28 UTC, Tobias Pankrath wrote:
[...]

Try

struct S
{
     S*[] children;
}

because otherwise when you declare the array the compiler has not finished the semantic ana of S.

so S size is not known while S* size is known as it's a pointer

Reply via email to