[xsd-users] Problem with xsd 1.9.0 & g++ 3.2.3

Karen Arutyunov karen at ocslab.com
Fri Feb 17 05:07:49 EST 2006


Hello,

I'm using xsd C++ tree mapping in one of my projects. Everything was working just fine but with xsd 1.9.0 I have got some compiler internal error. Understand that g++ 3.2.3 is not in the XSD Supported C++ Compilers list but would be great if you could look into the problem and fix it if possible.

Thanks in advance,
Karen.

Compiler info:

[karen at localhost build]$ g++ --version
g++ (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-53)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
Compilation output:

/usr/bin/xsd cxx-tree --hxx-suffix .hpp --cxx-suffix .cpp ../../../xsd/TestRSSFeed/Config.xsd
g++ -c -Wall -g -ggdb -fno-inline -D_REENTRANT -D_GLIBCPP_USE_WCHAR_T   -I../../ . -I.././. -I/home/karen/projects/research/include  -I/usr/include -o Config.so. o Config.cpp
/usr/include/xsd/cxx/tree/type-factory-map.ixx: In constructor
   `xsd::cxx::tree::type_factory_map<C>::type_factory_map() [with C = char]':
/usr/include/xsd/cxx/tree/type-factory-map.ixx:29: Internal compiler error in
   c_expand_expr, at c-common.c:3830
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

Content of TestRSSFeed/Config.xsd:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.newsgate.com/Server/TestRSSFeed/Config"
    xmlns="http://www.newsgate.com/Server/TestRSSFeed/Config"
    elementFormDefault="qualified"
    xml:lang="en"
    version="1.0">
   
  <xsd:element name="config" type="ConfigType"/>
 
  <xsd:complexType name="ConfigType">
 
    <xsd:all>
 
      <xsd:element name="logger" type="LoggerType">
      </xsd:element>
 
      <xsd:element name="rss_feeds">
      <xsd:complexType>
 
        <xsd:sequence>
          <xsd:element name="feed" minOccurs="1" maxOccurs="unbounded">
          <xsd:complexType>
 
            <xsd:all>
 
              <xsd:element name="channel">
              <xsd:complexType>
  
                <xsd:attribute name="title_len"
                               type="xsd:nonNegativeInteger"
                               default="0">
                </xsd:attribute>
 
                <xsd:attribute name="description_len"
                               type="xsd:nonNegativeInteger"
                               default="0">
                </xsd:attribute>
 
                <xsd:attribute name="last_build_date"
                               type="RFC_0882_Zone"
                               default="">
                </xsd:attribute>
 
                <xsd:attribute name="ttl"
                               type="xsd:nonNegativeInteger"
                               default="0">
                </xsd:attribute>
 
              </xsd:complexType>
              </xsd:element>
              <!-- end of ConfigType::rss_feeds::feed::channel -->
 
              <xsd:element name="item">
              <xsd:complexType>
 
                <xsd:attribute name="title_len"
                               type="xsd:nonNegativeInteger"
                               default="0">
                </xsd:attribute>
 
                <xsd:attribute name="description_len"
                               type="xsd:nonNegativeInteger"
                               default="0">
                </xsd:attribute>
 
                <xsd:attribute name="description_format"
                               type="DescriptionFormats"
                               default="text">
                </xsd:attribute>
 
                <xsd:attribute name="category_len"
                               type="xsd:nonNegativeInteger"
                               default="0">
                </xsd:attribute>
 
                <xsd:attribute name="pub_date"
                               type="RFC_0882_Zone"
                               default="">
                </xsd:attribute>
 
                <xsd:attribute name="link_prefix" type="xsd:string" default="">
                </xsd:attribute>
 
                <xsd:attribute name="guid_prefix" type="xsd:string" default="">
                </xsd:attribute>
 
              </xsd:complexType>
              </xsd:element>
              <!-- end of ConfigType::rss_feeds::feed::item -->
 
              <xsd:element name="http_response">
              <xsd:complexType>
 
                <xsd:attribute name="content_length"
                               type="xsd:boolean"
                               default="true">
                </xsd:attribute>
 
                <xsd:attribute name="chunked"
                               type="xsd:nonNegativeInteger"
                               default="0">
                </xsd:attribute>
 
                <xsd:attribute name="etag"
                               type="xsd:boolean"
                               default="false">
                </xsd:attribute>
 
                <xsd:attribute name="last_modified"
                               type="xsd:boolean"
                               default="false">
                </xsd:attribute>
 
              </xsd:complexType>
              </xsd:element>
              <!-- end of ConfigType::rss_feeds::feed::http_response -->
 
            </xsd:all>
 
            <xsd:attribute name="id" type="xsd:string" use="required">
            </xsd:attribute>
 
            <xsd:attribute name="count" type="xsd:positiveInteger" default="1">
            </xsd:attribute>
 
            <xsd:attribute name="word_file" type="xsd:string" use="required">
            </xsd:attribute>
 
            <xsd:attribute name="time_frame"
                           type="xsd:positiveInteger"
                           use="required">
            </xsd:attribute>
 
            <xsd:attribute name="min_msg_freq"
                           type="xsd:nonNegativeInteger"
                           default="0">
            </xsd:attribute>
 
            <xsd:attribute name="max_msg_freq"
                           type="xsd:nonNegativeInteger"
                           default="864000">
            </xsd:attribute>
 
            <xsd:attribute name="msg_sort"
                           type="SortMode"
                           default="random">
           </xsd:attribute>
 
            <xsd:attribute name="msg_retiming"
                           type="Percentage"
                           default="0">
            </xsd:attribute>
 
          </xsd:complexType>
          </xsd:element>
          <!-- end of ConfigType::rss_feeds::feed -->
 
        </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      <!-- end of ConfigType::rss_feeds -->
 
    </xsd:all>
 
  </xsd:complexType>
  <!-- end of ConfigType -->
 
  <xsd:complexType name="LoggerType">
 
    <xsd:all>
 
      <xsd:element name="time_span_policy" minOccurs="0">
      <xsd:complexType>
        <xsd:attribute name="time" type="xsd:positiveInteger" use="required">
        </xsd:attribute>
      </xsd:complexType>
      </xsd:element>
      <!-- end of LoggerType::time_span_policy -->
 
      <xsd:element name="size_span_policy" minOccurs="0">
      <xsd:complexType>
        <xsd:attribute name="size" type="xsd:positiveInteger" use="required">
        </xsd:attribute>
      </xsd:complexType>
      </xsd:element>
      <!-- end of LoggerType::size_span_policy -->
 
    </xsd:all>
 
    <xsd:attribute name="filename" type="xsd:string" use="required">
    </xsd:attribute>
 
    <xsd:attribute name="log_level" type="xsd:positiveInteger" use="required">
    </xsd:attribute>
 
  </xsd:complexType>
  <!-- end of LoggerType -->
 
  <xsd:simpleType name="RFC_0882_Zone">
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="GMT|[\-+]([0-1][0-9]|2[0-3])[0-5][0-9]|"/>
    </xsd:restriction>
  </xsd:simpleType>
 
  <xsd:simpleType name="DescriptionFormats">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="text">
      </xsd:enumeration>
      <xsd:enumeration value="html">
      </xsd:enumeration>
    </xsd:restriction>
  </xsd:simpleType>
 
  <xsd:simpleType name="SortMode">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="descending">
      </xsd:enumeration>
      <xsd:enumeration value="ascending">
      </xsd:enumeration>
      <xsd:enumeration value="random">
      </xsd:enumeration>
    </xsd:restriction>
  </xsd:simpleType>
 
  <xsd:simpleType name="Percentage">
    <xsd:restriction base="xsd:nonNegativeInteger">
      <xsd:maxInclusive value="100"/>
    </xsd:restriction>
  </xsd:simpleType>
 
</xsd:schema>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codesynthesis.com/pipermail/xsd-users/attachments/20060217/c6588367/attachment.htm


More information about the xsd-users mailing list