This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
BUG REPORT: Internal compiler error gcc 2.95.1
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: BUG REPORT: Internal compiler error gcc 2.95.1
- From: martijn dot van dot balen at philips dot com
- Date: Wed, 15 Mar 2000 14:57:38 +0100
- Cc: <martijn dot van dot balen at philips dot com>
Hi,
The (small) piece of code below results in an internal compiler error when
processed by g++.
I've tested it on multiple platforms here, giving the same result except
for the way the internal error is reported (egcs-2.91.66 seems to be
less specific ???)
My command line is simple: g++ -c bug.c
Regards,
Martijn.
uname -a: HP-UX hpas16 B.11.00 A 9000/820 2014723117 two-user license
===================================================================
g++ -v: gcc version 2.8.1
bug.c: In function `void func()':
bug.c:15: Internal compiler error.
bug.c:15: Please submit a full bug report to `bug-g++@prep.ai.mit.edu'.
g++ -v: gcc version 2.95.1 19990816 (release)
bug.c: In function `void func()':
bug.c:15: Internal compiler error in `instantiate_virtual_regs_1', at function.c:3862
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
g++ -v: gcc version 2.95.2 19991024 (release)
bug.c: In function `void func()':
bug.c:15: Internal compiler error in `instantiate_virtual_regs_1', at function.c:3863
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
uname -a: IRIX64 giants 6.5 07151433 IP25
=========================================
g++ -v: gcc version 2.95.1 19990816 (release)
bug.c: In function `void func()':
bug.c:15: Internal compiler error in `instantiate_virtual_regs_1', at function.c:3862
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
uname -a: Linux linux1 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
====================================================================================
g++ -v: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
../../gcc/function.c:3272: Internal compiler error in function instantiate_virtual_regs_1
Program code
============
class myclass
{
public:
myclass();
operator int() const;
};
void func ()
{
myclass x;
myclass px;
int b;
x = b ? px : (myclass)(px);
}