Now, indeed, the parser seems to be working for me in this case. Though it does give a link error unless a definition is provided for X::X(int).