Opened 18 years ago

Closed 15 years ago

#285 closed Bugs (wontfix)

Borland compiler error with Pool, boost::pool_allocator

Reported by: davidwt Owned by: Nicola Musatti
Milestone: Component: None
Version: None Severity: Showstopper
Keywords: Cc:

Description

This Borland compiler error occurs with boost release 
versions 1.30.2 and 1.31.0.  It also occurs with the 
latest CVS checkout as of July 9, 2004.  I've tried this 
on two Win2000 computers with totally different 
hardware (Intel, AMD).

Borland compilers from Borland Builder5 and from 
Borland BuilderX both generate an internal compiler 
error with a typedef of pool_allocator<int>.

The source code file t.cpp contains:

#include <boost/pool/pool.hpp>
typedef boost::pool_allocator<int> node_alloc;

Here is a copy of the DOS window for the two compiles:

D:\>c:\borland\CBUILDER5\BIN\bcc32 -
I\src.misc\boost;c:\borland\CBUILDER5\include  t.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 
Borland
t.cpp:
Fatal F1004 t.cpp 2: Internal compiler error at 
0x46f530 with base 0x400000
Fatal F1004 t.cpp 2: Internal compiler error

D:\>c:\borland\CBUILDERX\BIN\bcc32 -
I\src.misc\boost;c:\borland\CBUILDERX\include  t.cpp
Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 
Borland
t.cpp:
Fatal F1004 t.cpp 2: Internal compiler error at 
0x4394f6 with base 0x400000
Fatal F1004 t.cpp 2: Internal compiler error


Change History (3)

comment:1 by Nicola Musatti, 15 years ago

Resolution: Nonewontfix
Severity: Showstopper
Status: assignedclosed

This problem is caused by a CodeGear (formerly Borland) compiler bug which was fixed in the 5.9.0 version, which corresponds to C++ Builder 2007.

comment:2 by john_wilson@…, 15 years ago

Resolution: wontfix
Status: closedreopened

"bug which was fixed in the 5.9.0 version, which corresponds to C++ Builder 2007. " so how come using C++Builder2007 I get

[BCC32 Error] CPhaseEnvelopeSet.cpp(87): F1004 Internal compiler error at 0x54efc3f with base 0x54a0000

?

comment:3 by Nicola Musatti, 15 years ago

Resolution: wontfix
Status: reopenedclosed

The example posted in the original report compiles without problems with bcc32 5.9.1, i.e. C++ Builder 2007 with Update 2 installed, Boost 1.34.1 and the bcbboost patches, available at http://bcbboost.sf.net

Note: See TracTickets for help on using tickets.