mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
GH-1534: Fix excessive coredump for duplicate enum definitions
An adequate error message was previously reported for duplicate enum definitions, this just now prevents trying to access it as a constant in subsequent parsing and further generating a coredump.
This commit is contained in:
parent
af3814792a
commit
13f3cb377f
3 changed files with 15 additions and 0 deletions
|
@ -40,3 +40,10 @@ global NOPE = 37;
|
|||
redef enum a += {
|
||||
NOPE,
|
||||
};
|
||||
|
||||
type E: enum { Red, Green, Blue };
|
||||
redef enum E += { Pink };
|
||||
redef enum E += { Pink };
|
||||
|
||||
print Pink;
|
||||
print Pink;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue