Re: [Boost-bugs] [Boost C++ Libraries] #4008: Segfault in program_options::parse_command_line when compiled with -fshort-enums

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4008: Segfault in program_options::parse_command_line when compiled with -fshort-enums
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-18 19:18:57


#4008: Segfault in program_options::parse_command_line when compiled with -fshort-
enums
----------------------------------------------------------+-----------------
 Reporter: Severin Kacianka <severin@…> | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: program_options
  Version: Boost 1.42.0 | Severity: Showstopper
 Keywords: |
----------------------------------------------------------+-----------------

Comment(by Severin Kacianka <severin@…>):

 ah I just figured out, that I forgot to rebuild boost.
 {{{
  bjam cxxflags=-fshort-enums --prefix=/home/severin/software/boost_test
 install -a
 }}}

 (Note the -a at the end)

 now the compilation with -fshot-enums works fine (but of course it crashes
 if I compile it without -fshort-enums).
 Sorry that the problem was so trivial - I am very new to C++ and did not
 expect that a compiler flag can cause a segfault ;-)
 Thank you for your solution!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4008#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC