Skip to content

spicyz compilation produces malformed C++ #5543

@Mohan-Dhawan

Description

@Mohan-Dhawan

When a Spicy module declares a unit alias (type Alias = Real;) and a .evt file binds a Zeek event to the alias name, spicyz's generated C++ fails to compile. I get three types of errors:

  1. hlt_internal::TINY::Real has not been declared
  2. Real has not been declared
  3. type_info has not been declared

Attached are the files for the reproducer.

tiny.evt.txt
tiny.spicy.txt
hilti-jit-error.log

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions