[ROOT-1680] gendict.py choking on max array dimension from GCC XML Created: 16/Jan/08 Updated: 12/Apr/13 Resolved: 12/Apr/13 Status: Project: Component/s: Affects Version/s: Fix Version/s: Closed ROOT Dictionaries < v5-28-00 Type: Reporter: Bug Jean-François Bastien (Inactive) Fixed Microsoft Windows Resolution: Environment: Attachments: External issue ID: External issue URL: None Priority: Assignee: High Axel Naumann Votes: 0 gendict.py.diff bugs32702 https://savannah.cern.ch/bugs/?32702 Description I'm using GCC XML 0.9.0. A few of my source files couldn't be processed by renreflex.py (which invokes gendict.py) because it attempted to convert to int a string that was suffixed with a &quot;u&quot;. This happened only for maximum array size, I haven't checked if it can happen in other circumstances. I've attached a diff file for gendict.py (agains root_v5.17.08.win32.vc80). As I said I don't know if this fix should be applied to other string to int conversions. Here is a sample traceback of the problem: Traceback (most recent call last): File &amp;quot;C:\root\bin\\..\lib\python\genreflex\genreflex.py&amp;quot;, line 354, in &amp;lt;module&amp;gt; l.process_files() File &amp;quot;C:\root\bin\\..\lib\python\genreflex\genreflex.py&amp;quot;, line 314, in process_files cnames, warnings, errors = dg.generate(dicfile, classes, functions, enums, variables, gccxmlinfo ) File &amp;quot;C:\root\lib\python\genreflex\gendict.py&amp;quot;, line 461, in generate scons, stubs = self.genClassDict( c ) File &amp;quot;C:\root\lib\python\genreflex\gendict.py&amp;quot;, line 712, in genClassDict line = self.__class__.__dict__[funcname](self, self.xref[m]['attrs'], self.xref[m]['subelems']) File &amp;quot;C:\root\lib\python\genreflex\gendict.py&amp;quot;, line 1166, in genFieldBuild type = self.genTypeName(attrs['type'], enum=False, const=False) File &amp;quot;C:\root\lib\python\genreflex\gendict.py&amp;quot;, line 927, in genTypeName arr = '[%s]' % str(int(attrs['max'])+1) ValueError: invalid literal for int() with base 10: '0u' Comments Comment by Axel Naumann [ 16/Jan/08 ] Reflex only supports GCCXML 0.6 (with a series of patches) and GCCXML 0.7 (recommended version) so far. We have plans to add support for GCCXML 0.9 during the first half of this year. Thanks for your diff, but this fixes only one of the problems introduced by GCCXML 0.9. Please move to 0.7 for full support. Generated at Wed May 17 16:51:19 CEST 2017 using JIRA 7.2.7#72009sha1:68b7d86b7e8716f76c1f28a5095acccf67bb75b1.