This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug in G++
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Bug in G++
- From: Tom Haywood <thomas_haywood at aus dot hp dot com>
- Date: Fri, 30 Apr 1999 14:44:30 +1000
Hello,
I have found in a bug in the c++ compiler of egcs-1.1.2. It is easily
reproduced and I have attached the 11 lines of code need to do so.
For reference this bug also occurs using gcc-2.8.1 for the same target,
which is SH. To check if it is target dependent I built egcs-1.1.2 for
HPUX 10.2 and found that the bug does not occur on the PA-RISC target.
Regards,
Tom Haywood,
Hewlett Packard.
egcs version : 1.1.2
Host system : HPUX 10.2 (also occurs when hosted by Cygwin B20).
Target sytsem : sh-elf (Hitachi SH, ELF, no OS on target).
Options passed : -c
Cut down version of code is as follows:
-----------------------------
class Base
{
public:
Base(const Base& y);
~Base();
};
bool foo(Base prm1)
{
return false;
}
-----------------------------
Command line for executing egcs is as follows:
% sh-elf-gcc -c ~/bug.cc
Error reported:
../../gcc/expr.c:2423: Internal compiler error in function emit_move_insn