aboutsummaryrefslogtreecommitdiff
path: root/test/const-expr-shr.qbe
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-08-15 00:28:11 -0700
committerMichael Forney <mforney@mforney.org>2021-08-15 00:37:32 -0700
commit8755378092c00fbae007abbd3f5cb83df0f50ac2 (patch)
tree158c888785f2e94ce1b461168c0a9c8447fbe109 /test/const-expr-shr.qbe
parent70a532525946a28dc1ffacc542ba6a5b67aee986 (diff)
decl: Don't accept abstract function declarator when disallowed
When declarator() is called with allowabstract == false, the caller can assume that it will always return the identifier being declared. However, abstract function declarators were incorrectly accepted in this case with name set to NULL instead of erroring out due to invalid syntax. To fix this, only skip forward to function declarator parsing for abstract declarators, since this is the only case where we can't immediately tell whether we have a parenthesized declarator or a function declarator. Fixes #74.
Diffstat (limited to 'test/const-expr-shr.qbe')
0 files changed, 0 insertions, 0 deletions