EXTERNAL: Re: [xsd-users] XSD Forward Declaration Bug

Chalk, Andrew J andrew.j.chalk at lmco.com
Wed Feb 15 15:27:29 EST 2017


See my email to you of yesterday. It has source code attached that illustrates the bugs we discussed.

Best Regards,

Andrew

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Thursday, January 19, 2017 8:59 AM
To: Chalk, Andrew J (US N-AMERICAN CYBERSYSTEMS) <andrew.j.chalk at lmco.com>
Cc: xsd-users at codesynthesis.com
Subject: EXTERNAL: Re: [xsd-users] XSD Forward Declaration Bug

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