This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Internal compilier error 980711


Ack, sorry about the omission.  The precompiled source code (produced by the -E
flag on g++) is attached to this email (I deleted A LOT of whitespace and zipped
it with pkzip - let me know if that's a problem).

Thanks, Micah

(See attached file: cfbytelog.zip)

Original email repeats:

I'm using:
gcc version egcs-2.91.66 19990314/Linux (ecgs-1.1.2 release)
(came with Redhat's Linux 6.0 Official Release)

Running on a Dell Optiplex G1 Pentium II 350MHz with 128 M of Ram and a 4Gig HD
dedicated to Redhat Linux ver 6.0

I recieve "internal compilier error 980711" when I try to compile the following
code:

//cfbytearray.h
#include </home/mrusso/stlport-3.2/stlport/vector>
class CFByteArray {
public:
     CFByteArray ();
     ~CFByteArray();
     int GetSize() const;
     void SetSize(int nNewSize);
     BYTE* GetData();
protected:
     stlport::vector<uInt8> m_vectData;
};
...

When I try to compile with the following command: (using a makefile)
make array
Where
array: cfbytearray.o
cfbytearray.o:
     g++ -c cfbytearray.cpp -o cfbytearray.o -I.
-I/home/mrusso/stlport-3.2/stlport

I receive the following response and error:

In file included from cfbytearray.cpp:6;
cfbytearray.h:20;Internal compilier error 980711.
cfbytearray.h:20: Please submit a full bug report.. (with email and faq address)
make: *** [cfbytearray.o] Error 1

cfbytearray.h is included from the .cpp file on the 6th line after the stdafx.h
which current contains only basic definitions for BYTE(char) and uInt8(int
temporarily)

The include refers to stlport version 3.2 format TAR/GZIP available from the
stlport website at:
www.stlport.org/download.shtml

The 20th line in .h refers to the following line:
     stlport::vector<uInt8> m_vectData
(N.B. the Microsoft Dev Studio, i.e. Visual C++ 6.0 compiles without error for
the equivalent code (the only modification being the include path to the stlport
directory and the use of stlport 3.2 zip)

The code compilies without error if the following is substituted:
     vector<uInt8> m_vectData;
(N.B.  I think this should be invalid as the vector class _should_ only exist in
the stlport namespace, and indeed VC issues a corresponding error with this
alteration)
This would seem to imply we are already in the namespace stlport (which
shouldn't be the case as I understand stlport).  Regardless, using stlport:: in
the stlport namespace shouldn't cause an internal compilier error.

The stlport namespace is defined ("using namespace stlport;" gives no error)

The compilier ignores any code after the offending line.

I'm fairly new to Linux/egcs (used some gcc for coursework two years ago under a
sun workstation), so I apologize for any inaccuracies in my guesswork.

Thanks for your time,
Micah Russo
National Instruments
Austin, TX 78704
512-683-8176

.ZIP File


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]