[xsd-users] XSD Forward Declaration Bug

Boris Kolpackov boris at codesynthesis.com
Thu Jan 19 09:59:16 EST 2017


Hi Andrew,

Chalk, Andrew J <andrew.j.chalk at lmco.com> writes:

> XSD 4.0.0. for Linux appears to have a bug in the C++ it generates.
> It creates incomplete types to provide declarations of classes. The
> problem is, it does this when the class is used in the translation
> unit in the definition of a derived class. I.e.
> 
> Class A;
> 
> class B : public A
> {
> // content
> };
> 
> Since the size of incomplete type A is unknown, the compilation fails.
> 
> Can you replicate this?

It's hard to reproduce things just from the description of an error. But
I remember we've fixed something similar for 4.1.0. Can you try this pre-
release as a first step:

http://codesynthesis.com/~boris/tmp/xsd/xsd-4.1.0.a8-x86_64-linux-gnu.tar.bz2

Boris



More information about the xsd-users mailing list