Issue 12531 - forward reference with nested struct

https://issues.dlang.org/show_bug.cgi?id=12531