This bug refers to rds 0.24 and PSI tag 1.6.2. It occured in routing.routig.RoutingAttributeInfo:
The Problem is summarized as follows. In the expression in listIndex() both AST tokens of the type references index8 and index16 have a wrong scope. Usually the scope of references in an expression is the Compound to which this expression belongs. In this particular case the scope is the Enum parameter AttributeSource, and its parent is RoutingAttributeInfo. I think somehow the tracking of scope fails in this case.
This is quite problematic for us, since we need to decide if the reference type is a member referenc or a parent reference. This decision is done on checking the scope's symbol table. if the name is contained in the symbol table it is a reference lookup, otherwise it is parent lookup and different code is generated.
In this case the name is also not contained in the symbol table (it contains the value names of the enum: INDEX8, INDEX16, EXPLICIT...), hence the wrong decision is picked.