diff options
author | Michael Forney <mforney@mforney.org> | 2021-08-15 00:28:11 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-08-15 00:37:32 -0700 |
commit | 8755378092c00fbae007abbd3f5cb83df0f50ac2 (patch) | |
tree | 158c888785f2e94ce1b461168c0a9c8447fbe109 /scope.c | |
parent | 70a532525946a28dc1ffacc542ba6a5b67aee986 (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 'scope.c')
0 files changed, 0 insertions, 0 deletions