Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redef'ing a non-existent enum generates an Assertion failure #570

Open
vpax opened this issue Sep 5, 2019 · 0 comments

Comments

@vpax
Copy link
Contributor

commented Sep 5, 2019

The following simple script:
redef enum foo += { bar };
generates a reasonable error, but that's followed by an Assertion failure:

error in ./bug.bro, line 1: unknown identifier (foo)
Assertion failed: (cur_enum_type), function yyparse, file parse.y, line 818.

The first is fine, the second is tacky :-P.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.