Actions
Bug #334
closedBug #80: Version 1.6 bugfixes
Variable-size arrays may contain size in name
Responsible:
Description
When using the VarDef
API in THaAnalysisObject
,
Int_t DefineVarsFromList( const VarDef* list, EMode mode = kDefine, const char* var_prefix="" ) const;
and setting both
VarDef::size > 1
, indicating a fixed-size array, and VarDef::count != 0
, indicating a variable size array, an ill-formed global variable with array syntax in its name, e.g. a[10]
, is created. THaVarList::Find
then fails to find such variables.
Reported by Juan Carlos Cornejo. Copied from GitHub issue no. 153.
Actions