Skip to content

error 029: invalid expression, assumed zero #447

@Romz24

Description

@Romz24

Issue description:

When declaring an array, I get this error. It will be very long and not convenient to specify standard values manually, because in my mode this array has a value of 64 cells, and this is not even the limit.

Minimal complete verifiable example (MCVE):

enum V_STRUCT
{
    V_AAA[25],
    V_BBB[25]
    // more values...
}

new g_var[V_STRUCT] =
{
    {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, // <- good
    {1, ...} // <- error 029
    // more values...
};

main()
{
    printf("%i", g_var[V_AAA][3]);
    printf("%i", g_var[V_BBB][3]);
}

Workspace Information:

  • Compiler version: 3.10.9

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions