Skip to content

Pointer to __VOID does not generate type correctly #1621

@Angus-Bethke-Bachmann

Description

@Angus-Bethke-Bachmann

Describe the bug
Pointer to VOID does not correctly generate its type and leaves the definition blank, resulting in a compilation error.

To Reproduce

FUNCTION_BLOCK ASYNC_Task
VAR
    _Internal_ : POINTER TO __VOID;
END_VAR
typedef struct {
    uint64_t *__vtable;
    *_Internal_;
} ASYNC_Task_type;

Expected behavior
In the above example, the _Internal_ variable should be generated with the "void" type uint64_t*.

Additional context
Initially reported by Guillaume.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingheader-generatorThis label is for issues that specifically affect the header generator sub process of the compiler.high-priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions