compiler/libec: Added safety check for structDeclarator
- Fixed IDE crash on parsing C++ source