Skip to content

Parsing error with var-len arrays in UDT #355

@mudhairless

Description

@mudhairless

Issue is present in both 32 and 64 bit compilers with versions 1.09.0, 1.08.1, and 1.07.3 known affected.

Error message from compiler:
fbc-issue.bas(10) error 3: Expected End-of-Line, found '.' in 'redim test(0,0).array(0)'

I have only tested this on Windows but it should not differ between platforms.

type aType
    array(any) as integer
end type
 
dim test(any,any) as aType

redim test(0,0)

'doesnt work
redim test(0,0).array(0)

'works
redim (test(0,0).array)(0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions