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]

Bugreport for gcc-2.95.2 on i686-pc-linux-gnu (C++)


Dear Ladies and Gentlemen,

I want to report an internal compiler error which I received when
compiling the following small program:

//-----------------------------------------------
#include <set>

class SomeClass {
public:
protected:
  static const int size;
  double data[size];
};

int main()
{
  SomeClass foo;
}
//------------------------------------------------

The command line:
eg++ main.cc

Compiler output:
main.cc:7: Internal compiler error 197.
main.cc:7: Please submit a full bug report.
main.cc:7: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport>
for instructions.

eg++ is the name of my gcc-2.95.2 compiler which resides in 
/usr/local/bin/eg++
On my system there is also an egcs-1.1.2 present which does not display
the 
reported bug. 

The line 
#include <set>

is necessary to reproduce the bug. The program clearly has an error, the
constant size is not initialised. 

General Information:

eg++ -v:
gcc version 2.95.2 19991024 (release)

System type:
SuSE-Linux 6.3, kernel 2.2.13, i686-pc-linux-gnu

Compiler options: none

As an attachement please find the file main.ii.bz2 which was produced
with 
eg++ --save-temps main.cc 
It was compressed using bzip2. 
I further included the (short) compiler output as well as the file
main.cc. 

For further information please contact me by email: schwager@charite.de

I hope the information I gave is sufficient for you to reproduce the
bug. 
In case the bug is either well known or due to avoidable errors (e.g.
installation error) by myselve please accept my apologies. 

Yours
Thomas Schwager

main.ii.bz2

main.cc:7: Internal compiler error 197.
main.cc:7: Please submit a full bug report.
main.cc:7: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
#include <set>

class SomeClass {
public:
protected:
  static const int size;
  double data[size];
};

int main()
{
  SomeClass foo;
}

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