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]

BUG REPORT: Internal compiler error gcc 2.95.1


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);
}

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