This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: 971127 internal compiler error
- To: egcs at cygnus dot com, egcs-bugs at cygnus dot com
- Subject: Re: 971127 internal compiler error
- From: Thomas Weise <tom at zaphod dot wh9 dot tu-dresden dot de>
- Date: Sat, 29 Nov 1997 08:42:07 +0000
- Organization: Dresden University of Technology
- References: <347EEF3C.5ADD@zaphod.wh9.tu-dresden.de>
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