Community
Participate
Working Groups
In this code: struct x {}; struct y { y(x) {}; }; the declaration inside 'y' is a constructor definition, followed by a stray semicolon (which is allowed). However, CDT parses it as a field declaration (judging by the fact that it syntax-colors the 'x' as a field rather than a class type). If you remove the stray semicolon, the declaration is parsed correctly.