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.
Updated by Ole Hansen over 6 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Added checks for conflicting VarDef specs in THaVarList::DefineVariables. If both fixed-size and variable-size arrays seem to be specified, print a warning and assume a variable-size array (since giving a size may be an accident, but specifying a size counter most likely isn't).
Closed with commit d52843a
Actions