[Bug c++/42791] New: boost[1.33.1]::spirit depends on optimization level

FBergemann at web dot de gcc-bugzilla@gcc.gnu.org
Mon Jan 18 12:17:00 GMT 2010


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
(will attach tar file next).

It accepts XML input if compiled with -O0 or -O1 and returns #1 ("hit") for it:

|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 (return #0 "no hit"), 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


-- 
           Summary: boost[1.33.1]::spirit depends on optimization level
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: FBergemann at web dot de
 GCC build triplet: ia64 hp-ux B11.31
  GCC host triplet: ia64 hp-ux B11.31
GCC target triplet: ia64 hp-ux B11.31


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42791



More information about the Gcc-bugs mailing list