[spirit] boost 1.33.1, HP-UX ia64 & gcc-3.4.4 - doesn't work with optimization (-O2)

Hello, i posted a problem against boost::serialization. (http://article.gmane.org/gmane.comp.lib.boost.user/54935). But now i could track it down to boost::spirit. I have extracted boost::serialization stuff , which is dealing with boost spirit, in a mini demo program (see attached tar file). It accepts XML input if compiled with -O0 or -O1 and returns: |hpux03 407> make sample /usr/local/gcc-3.4.4/bin/g++ -g -mlp64 -Wall -mtune=itanium2 -O1 -I/nfs/uh01/frank/userspace/OPSC_DIAXHBS_dev_R2.2_hpport/include -c sample.cc /usr/local/gcc-3.4.4/bin/g++ -g -mlp64 -Wall -mtune=itanium2 -O1 -I/nfs/uh01/frank/userspace/OPSC_DIAXHBS_dev_R2.2_hpport/include -c fbe_basic_xml_grammar.cc ./sample /usr/local/gcc-3.4.4/bin/g++ -g -mlp64 -Wall -mtune=itanium2 -O1 -I/nfs/uh01/frank/userspace/OPSC_DIAXHBS_dev_R2.2_hpport/include -lunwind -o sample sample.o fbe_basic_xml_grammar.o |hpux03 408> ./sample test is '<pDeleteHlrSubscriberIn class_id="0" tracking_level="0" version="0">' parse_start_tag('<pDeleteHlrSubscriberIn class_id="0" tracking_level="0" version="0">') returned 1 But it fails, if i use -O2 or -O3: |hpux03 411> make sample /usr/local/gcc-3.4.4/bin/g++ -g -mlp64 -Wall -mtune=itanium2 -O2 -I/nfs/uh01/frank/userspace/OPSC_DIAXHBS_dev_R2.2_hpport/include -c sample.cc ./sample /usr/local/gcc-3.4.4/bin/g++ -g -mlp64 -Wall -mtune=itanium2 -O2 -I/nfs/uh01/frank/userspace/OPSC_DIAXHBS_dev_R2.2_hpport/include -c fbe_basic_xml_grammar.cc /usr/local/gcc-3.4.4/bin/g++ -g -mlp64 -Wall -mtune=itanium2 -O2 -I/nfs/uh01/frank/userspace/OPSC_DIAXHBS_dev_R2.2_hpport/include -lunwind -o sample sample.o fbe_basic_xml_grammar.o |hpux03 412> ./sample test is '<pDeleteHlrSubscriberIn class_id="0" tracking_level="0" version="0">' parse_start_tag('<pDeleteHlrSubscriberIn class_id="0" tracking_level="0" version="0">') returned 0 Is it a bug of gcc-3.4.4? (for HP-UX B11.31 ia64?) Or boost::spirit using experimental C++ feature (for level of gcc-3.4.4)? - many thanks! Frank Bergemann ______________________________________________________ GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de
participants (1)
-
Frank Bergemann