Menu

#848 #includes inside Type blocks are buggy

open
nobody
None
compiler
2017-02-12
2017-02-12
dkl
No

#include statements inside Type blocks cause undefined behaviour: They're processed as usual by a recursive cProgram() call, breaking the Type parser's assumption about being non-recursive, and allowing many more constructs than allowed by hTypeBody().

Either #includes need to be disallowed inside such special nested blocks, or the #include expansion must be transparent to the parser.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB