PLC-lang / rusty

Structured Text Parser and LLVM Frontend
GNU Lesser General Public License v3.0
223 stars 53 forks source link

Custom-sized STRING[...] types in VAR_CONFIG blocks cause panic #1331

Open mhasel opened 1 month ago

mhasel commented 1 month ago
VAR_CONFIG
    main.foo.bar AT %IX1.0 : STRING[100];
END_VAR

currently leads to a panic in index::visitor::visit_global_var_block, src/index/visitor.rs:313:50 due to the custom string type not having a name.

Originally posted by @mhasel in https://github.com/PLC-lang/rusty/issues/1308#issuecomment-2368074953