Opened 8 years ago

Closed 8 years ago

#3715 closed Bugs (fixed)

Regex fails to build by gcc-3.3.5

Reported by: Andrei Korostelev <andrei@…> Owned by: johnmaddock
Milestone: Boost 1.42.0 Component: regex
Version: Boost 1.41.0 Severity: Problem
Keywords: Cc: regex gcc-3.3.5


boost::regex from 1.40 and 1.41 cannot be built by gcc-3.3.5 (OpenBSD-4.6) Boost::regex from 1.36 is build ok.

The same error appears when building using jam and make -fgcc-shared.mak

-bash-4.0# ../../../tools/jam/src/bin.openbsdx86/bjam debug --toolset=gcc stage threading=multi link=static [...] gcc.compile.c++ ../../../bin.v2/libs/regex/build/gcc-3.3.5/debug/link-static/threading-multi/instances.o ../../../boost/regex/v4/cpp_regex_traits.hpp: In member function `void

boost::re_detail::cpp_regex_traits_implementation<charT>::init() [with charT


../../../boost/regex/v4/instances.hpp:142: instantiated from here ../../../boost/regex/v4/cpp_regex_traits.hpp:737: error: too many initializers

for `const uint_least32_t[14]'

../../../boost/regex/v4/cpp_regex_traits.hpp: In member function `bool

boost::re_detail::cpp_regex_traits_implementation<charT>::isctype(charT, typename boost::cpp_regex_traits<charT>::char_class_type) const [with charT


../../../boost/regex/v4/instances.hpp:148: instantiated from here ../../../boost/regex/v4/cpp_regex_traits.hpp:827: error: `char_class_horizontal

' undeclared in namespace `boost::re_detail'

../../../boost/regex/v4/cpp_regex_traits.hpp:827: error: `char_class_vertical'

undeclared in namespace `boost::re_detail'

"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -pthread -DBOOST_ALL_NO_LIB=1 -I"../../.." -c -o "../../../bin.v2/libs/regex/build/gcc-3.3.5/debug/link-static/threading-multi/instances.o" "../../../libs/regex/src/../src/instances.cpp"

...failed gcc.compile.c++ ../../../bin.v2/libs/regex/build/gcc-3.3.5/debug/link-static/threading-multi/instances.o...

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by steven_watanabe

  • Component changed from Building Boost to regex
  • Owner set to johnmaddock

comment:2 Changed 8 years ago by johnmaddock

  • Resolution set to fixed
  • Status changed from new to closed

This was reported on the mailing list a while back: I believe it's fixed in SVN Trunk.

Please reopen if not.

Regards, John Maddock.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain johnmaddock.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.