971127 internal compiler error
Thomas Weise
tom@zaphod.wh9.tu-dresden.de
Fri Nov 28 23:42:00 GMT 1997
Hope this simple testcase helps:
tom@hermes:/home/tom > cat bug2.cc
class x
{
public:
x (int init_buffer_size=0);
~x ();
};
class xSequence
{
public:
xSequence ();
~xSequence ();
x Get(int index)const;
};
class foo
{
public:
bool bar(const x & name, x & value);
};
bool foo::bar(const x & name, x & value)
{
bool result = false;
xSequence seq;
x v1, v2;
if(result ? bar(seq.Get(1),v2) : bar(seq.Get(2),v2))
;
return result;
}
tom@hermes:/home/tom > g++ -fsjlj-exceptions bug2.cc
bug2.cc: In method `bool foo::bar(const class x &, class x &)':
bug2.cc:41: Internal compiler error.
bug2.cc:41: Please submit a full bug report to `egcs-bugs@cygnus.com'.
tom@hermes:/home/tom >
--
Thomas Weise, http://www.inf.tu-dresden.de/~tw4
Dresden University of Technology, Department of Computer Science
More information about the Gcc
mailing list