Bug 51567 - gcc 2.96-85 cannot compile the regex part of the boost library
Summary: gcc 2.96-85 cannot compile the regex part of the boost library
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 7.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: David Lawrence
: 63960 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2001-08-12 13:25 UTC by Peter Klotz
Modified: 2007-04-18 16:35 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2004-10-05 18:45:56 UTC

Attachments (Terms of Use)
cregex.ii as requested (88.76 KB, application/octet-stream)
2001-08-17 21:51 UTC, Peter Klotz
no flags Details

Description Peter Klotz 2001-08-12 13:25:39 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.8 i686)

Description of problem:
gcc 2.96-85 reports an internal compiler error when executing the command
make -f gcc.mak in order to compile the regex part of the boost C++ library
1.23.0 (www.boost.org).

How reproducible:

Steps to Reproduce:
1.extract boost_1_23_0.tar.gz
2.go to the directory boost_1_23_0/libs/regex/build
3.execute the command make -f gcc.mak

Actual Results:  [root@localhost build]# make -f gcc.mak
g++  -o gcc/boost_regex/c_regex_traits.o -c -O2
-I/root/software/stlport/STLport-4.5b8/stlport -I../../../ 
g++  -o gcc/boost_regex/c_regex_traits_common.o -c -O2
-I/root/software/stlport/STLport-4.5b8/stlport -I../../../ 
g++  -o gcc/boost_regex/cpp_regex_traits.o -c -O2
-I/root/software/stlport/STLport-4.5b8/stlport -I../../../ 
g++  -o gcc/boost_regex/cregex.o -c -O2
-I/root/software/stlport/STLport-4.5b8/stlport -I../../../ 
../../../boost/regex.hpp: In function `iterator
boost::re_detail::re_is_set_member (iterator, iterator,
boost::re_detail::re_set_long *, const boost::reg_expression<charT,
traits_type, Allocator> &) [with iterator =
boost::re_detail::mapfile_iterator, charT = char, traits_type =
boost::regex_traits<char>, Allocator =
../../../boost/regex/detail/regex_match.hpp:545:   instantiated from
`boost::re_detail::query_match_aux (iterator, iterator,
boost::match_results<iterator, Allocator> &, const
boost::reg_expression<charT, traits, Allocator2> &, unsigned int,
boost::re_detail::_priv_match_data<iterator, Allocator> &, iterator *)
[with iterator = boost::re_detail::mapfile_iterator, Allocator =
boost::re_detail::jm_def_alloc, charT = char, traits =
boost::regex_traits<char>, Allocator2 = boost::re_detail::jm_def_alloc]'
../../../boost/regex/detail/regex_match.hpp:1093:   instantiated from
`boost::re_detail::reg_grep2 (Predicate, I, I, const
boost::reg_expression<charT, traits,
Allocator2> &, unsigned int, A2) [with Predicate = boost::re_detail::pred4,
I = boost::re_detail::mapfile_iterator, charT = char, traits =
boost::regex_traits<char>, A = boost::re_detail::jm_def_alloc, A2 =
../../../boost/regex/detail/regex_match.hpp:1752:   instantiated from
`boost::regex_grep (Predicate, iterator, iterator, const
boost::reg_expression<charT, traits, Allocator2> &, unsigned int) [with
Predicate = boost::re_detail::pred4, iterator =
boost::re_detail::mapfile_iterator, charT = char, traits =
boost::regex_traits<char>, Allocator = boost::re_detail::jm_def_alloc]'
../src/cregex.cpp:383:   instantiated from here
../../../boost/regex.hpp:241: Internal compiler error in scan_region,
at except.c:2809
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make: *** [gcc/boost_regex/cregex.o]Error 1

Additional info:

Comment 1 Jakub Jelinek 2001-08-17 19:13:33 UTC
Can you provide a preprocessed testcase (ie. add -save-temps and attach here

Comment 2 Peter Klotz 2001-08-17 21:51:35 UTC
Created attachment 28353 [details]
cregex.ii as requested

Comment 3 Peter Klotz 2001-08-17 21:59:55 UTC
In the initial bug report I used STLport 4.5b8 (www.stlport.org) to compile 
the regex library but the Internal Compiler Error also occurs if the 
preinstalled GNU STL is used instead.

Comment 4 Jakub Jelinek 2001-08-23 14:06:35 UTC
Should be fixed in gcc-c++-2.96-97.

Comment 5 Jakub Jelinek 2002-04-23 09:35:31 UTC
*** Bug 63960 has been marked as a duplicate of this bug. ***

Comment 6 Vladimir Makarov 2004-10-05 18:45:56 UTC
gcc-2.96 is too old.  Its release cycle was finished long ago.  Also
Jakub wrote about fixing the bug in gcc-2.96-97.  Therefore I am
closing the case.  If  it is still important we could reopen it.

Note You need to log in before you can comment on or make changes to this bug.