[xsd-users] xsd 2.3.1: bug in code generation for restricted type

Ray Lischner rlischner at proteus-technologies.com
Sun Feb 18 17:39:45 EST 2007


$ xsd cxx-tree --generate-insertion bug.xsd
$ g++ -c bug.cxx
bug.txx:43: error: 's' has not been declared
bug.txx:44: error: expected ',' or '...' before '&' token
bug.txx: In function 'xsd::cxx::tree::ostream<S>& operator<<(xsd::cxx::tree::ostream<S>&, int)':
bug.txx:46: error: 's' was not declared in this scope
bug.txx:46: error: 'x' was not declared in this scope


The bug is trivially obvious and trivial to fix. I attached a patch.
--
Ray Lischner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.xsd
Type: application/xsd
Size: 428 bytes
Desc: bug.xsd
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070218/0ab480e5/bug.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: list-patch
Type: text/x-diff
Size: 597 bytes
Desc: list-patch
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070218/0ab480e5/list-patch.bin


More information about the xsd-users mailing list