Same error as issue 21961, but this time the parser misses that there are fields which have been added to the struct. --- struct outer { struct { int nested; }; }; --- This would suggest the type is not being constructed in the same way that D anon struct/union types are.
Resolved by https://github.com/dlang/dmd/pull/12619